Fix displaying and searching with multiple authors
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
45d5f7adc2
commit
a61cab80d5
|
@ -165,6 +165,10 @@ OC.Settings.Apps = OC.Settings.Apps || {
|
|||
app.previewAsIcon = true;
|
||||
}
|
||||
|
||||
if (_.isArray(app.author)) {
|
||||
app.author = app.author.join(', ');
|
||||
}
|
||||
|
||||
var html = template(app);
|
||||
if (selector) {
|
||||
selector.html(html);
|
||||
|
@ -481,6 +485,9 @@ OC.Settings.Apps = OC.Settings.Apps || {
|
|||
|
||||
// Author Name
|
||||
apps = apps.concat(_.filter(OC.Settings.Apps.State.apps, function (app) {
|
||||
if (_.isArray(app.author)) {
|
||||
return app.author.join(', ').toLowerCase().indexOf(query) !== -1;
|
||||
}
|
||||
return app.author.toLowerCase().indexOf(query) !== -1;
|
||||
}));
|
||||
|
||||
|
|
Loading…
Reference in New Issue