From 96ed4fe15e9f60b78a5b889e62bf5f00661051cd Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 30 Sep 2016 11:15:56 +0200 Subject: [PATCH] Fix displaying and searching with multiple authors Signed-off-by: Joas Schilling --- settings/js/apps.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/settings/js/apps.js b/settings/js/apps.js index 80949e1dd74..2b2ec9abbb6 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; })); -- 2.39.5