diff options
author | Joas Schilling <coding@schilljs.com> | 2016-09-30 11:15:56 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-09-30 11:15:56 +0200 |
commit | acd90669ff4ea542091697056a6b24af5be02dc9 (patch) | |
tree | b71f3700e3db9eaf77886ce002f944b6bed6fdf4 /settings | |
parent | 3a5022ad5b7fbbc76c7260c9e386945e225ead8d (diff) | |
download | nextcloud-server-acd90669ff4ea542091697056a6b24af5be02dc9.tar.gz nextcloud-server-acd90669ff4ea542091697056a6b24af5be02dc9.zip |
Fix displaying and searching with multiple authors
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/apps.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index 99246f323fe..5119b35178e 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -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); @@ -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; })); |