summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-12-06 13:10:33 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-13 08:39:38 +0100
commitf0a0e44d2e543c1c0642093a72fc3c2fafdb6350 (patch)
tree3c85be1632d77adfd8e9251dd72990f64db55837 /settings
parent5d56eba398357d5b324137ac55997d46d25f0051 (diff)
downloadnextcloud-server-f0a0e44d2e543c1c0642093a72fc3c2fafdb6350.tar.gz
nextcloud-server-f0a0e44d2e543c1c0642093a72fc3c2fafdb6350.zip
fix broken link on app management page for apps without ocsid - fix #9574, fix #10461
Diffstat (limited to 'settings')
-rw-r--r--settings/js/apps.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index 04fe99636cb..332c09f150e 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -104,7 +104,12 @@ OC.Settings.Apps = OC.Settings.Apps || {
if (app.internal === false) {
page.find('span.score').show();
page.find('p.appstore').show();
- page.find('a#appstorelink').attr('href', 'http://apps.owncloud.com/content/show.php?content=' + app.id);
+ var link = page.find('a#appstorelink');
+ if(app.ocsid) {
+ link.attr('href', 'https://apps.owncloud.com/content/show.php?content=' + app.ocsid);
+ } else {
+ link.hide();
+ }
page.find('small.externalapp').hide();
} else {
page.find('p.appslink').hide();