Skip to content

Commit

Permalink
Fix displaying and searching with multiple authors
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Sep 30, 2016
1 parent 3a5022a commit acd9066
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions settings/js/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,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);
Expand Down Expand Up @@ -513,6 +517,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;
}));

Expand Down

0 comments on commit acd9066

Please sign in to comment.