Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix displaying and searching with multiple authors
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Oct 11, 2016
commit a61cab80d57a3215806082445fadb1c10e529b8d
7 changes: 7 additions & 0 deletions settings/js/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}));

Expand Down