aboutsummaryrefslogtreecommitdiffstats
path: root/admin/batch_manager_global.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2016-06-23 18:04:23 +0200
committerplegall <plg@piwigo.org>2016-06-23 18:04:23 +0200
commit27c2871ca27adf24503f953fa05e9ca9d027eb76 (patch)
tree44ae49c75484149dc6b60993b02c2ab7acb20049 /admin/batch_manager_global.php
parentba2b2ab574698eb70de3700953cfac6b1dfbe790 (diff)
parentf9f077bb15a6789946af6806f04f0db63da692b3 (diff)
Merge branch 'bug/452-image-tags-lastmodified'
Diffstat (limited to 'admin/batch_manager_global.php')
-rw-r--r--admin/batch_manager_global.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/admin/batch_manager_global.php b/admin/batch_manager_global.php
index 1d5cb747d..332f3f7a7 100644
--- a/admin/batch_manager_global.php
+++ b/admin/batch_manager_global.php
@@ -123,6 +123,8 @@ DELETE
{
if (isset($_POST['del_tags']) and count($_POST['del_tags']) > 0)
{
+ $taglist_before = get_image_tag_ids($collection);
+
$query = '
DELETE
FROM '.IMAGE_TAG_TABLE.'
@@ -130,7 +132,11 @@ DELETE
AND tag_id IN ('.implode(',', $_POST['del_tags']).')
;';
pwg_query($query);
-
+
+ $taglist_after = get_image_tag_ids($collection);
+ $images_to_update = compare_image_tag_lists($taglist_before, $taglist_after);
+ update_images_lastmodified($images_to_update);
+
if (isset($_SESSION['bulk_manager_filter']['tags']) &&
count(array_intersect($_SESSION['bulk_manager_filter']['tags'], $_POST['del_tags'])))
{