summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-30 11:15:56 +0200
committerJoas Schilling <coding@schilljs.com>2016-10-11 10:07:35 +0200
commita61cab80d57a3215806082445fadb1c10e529b8d (patch)
tree23925099e04daac5f4830b66f44ccf471170bda3
parent45d5f7adc22cb7e32c4a8fa119e6cff90b5e5fb1 (diff)
downloadnextcloud-server-a61cab80d57a3215806082445fadb1c10e529b8d.tar.gz
nextcloud-server-a61cab80d57a3215806082445fadb1c10e529b8d.zip
Fix displaying and searching with multiple authors
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--settings/js/apps.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index 18c2ffd2f67..9e7118bdfc9 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -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;
}));