mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +02:00
include user name in search text for user stories
This commit is contained in:
parent
cd9bd8dddf
commit
b4a43db025
1 changed files with 2 additions and 2 deletions
|
@ -324,7 +324,7 @@ Window {
|
|||
// ListModel elements will only ever have those properties that are defined by the first obj that is added.
|
||||
// So here we make sure that we have all the properties we need, regardless of whether it is a place data or user story.
|
||||
var name = optionalPlaceName || data.place_name,
|
||||
tags = data.tags || [data.action],
|
||||
tags = data.tags || [data.action, data.username],
|
||||
description = data.description || "";
|
||||
return {
|
||||
place_name: name,
|
||||
|
@ -338,7 +338,7 @@ Window {
|
|||
description: description,
|
||||
online_users: data.online_users || 0,
|
||||
|
||||
searchText: [name].concat(tags, description).join(' ').toUpperCase()
|
||||
searchText: [name].concat(tags, description || []).join(' ').toUpperCase()
|
||||
}
|
||||
}
|
||||
function mapDomainPlaces(domain, cb) { // cb(error, arrayOfDomainPlaceData)
|
||||
|
|
Loading…
Reference in a new issue