From fb197e6a3e0074d1e07f24d8bdfc81177756c059 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Tue, 20 Sep 2022 16:09:40 +0200 Subject: [PATCH] related to #1644 Conform UI for linked albums --- admin/picture_modify.php | 2 +- admin/themes/default/template/picture_modify.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/picture_modify.php b/admin/picture_modify.php index d58d057a1..9f2db541b 100644 --- a/admin/picture_modify.php +++ b/admin/picture_modify.php @@ -374,7 +374,7 @@ while ($row = pwg_db_fetch_assoc($result)) $template->assign('STORAGE_CATEGORY', $name); } - $related_categories[$row['category_id']] = array('name' => $name, 'isVirtual' => !isset($row['dir'])); + $related_categories[$row['category_id']] = array('name' => $name, 'unlinkable' => $row['category_id'] != $storage_category_id); $related_categories_ids[] = $row['category_id']; } diff --git a/admin/themes/default/template/picture_modify.tpl b/admin/themes/default/template/picture_modify.tpl index 563978725..c3c616f63 100644 --- a/admin/themes/default/template/picture_modify.tpl +++ b/admin/themes/default/template/picture_modify.tpl @@ -187,7 +187,7 @@ $('#action-delete-picture').on('click', function() {