]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix displaying and searching with multiple authors
authorJoas Schilling <coding@schilljs.com>
Fri, 30 Sep 2016 09:15:56 +0000 (11:15 +0200)
committerJoas Schilling <coding@schilljs.com>
Fri, 30 Sep 2016 09:15:56 +0000 (11:15 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
settings/js/apps.js

index 99246f323fe67a57375531fa1d8e79ff8ea5ef31..5119b35178eeeee77aca8cb9b5a9500d434b4443 100644 (file)
@@ -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;
                }));