aboutsummaryrefslogtreecommitdiffstats
path: root/admin/batch_manager_global.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2011-07-30 04:53:18 +0000
committerrvelices <rv-github@modusoptimus.com>2011-07-30 04:53:18 +0000
commit6e8e08f3b76efe0d32f5169187bfff03e70bfed5 (patch)
treeb77261d5c1a5e72d3a95ddd60eefcdf89676118f /admin/batch_manager_global.php
parent79aea26230915261bf89fae07a5e277a410957de (diff)
feature 2387: addd a filter by tag in the batch manager (merge from trunk)
git-svn-id: http://piwigo.org/svn/branches/2.2@11854 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/batch_manager_global.php')
-rw-r--r--admin/batch_manager_global.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/admin/batch_manager_global.php b/admin/batch_manager_global.php
index 73d11be2d..1fb4b9ccd 100644
--- a/admin/batch_manager_global.php
+++ b/admin/batch_manager_global.php
@@ -486,6 +486,15 @@ $template->assign(
)
);
+if (!empty($_SESSION['bulk_manager_filter']['tags']))
+{
+ $query = '
+SELECT id, name
+ FROM '.TAGS_TABLE.'
+ WHERE id IN ('.implode(',', $_SESSION['bulk_manager_filter']['tags']).')';
+ $template->assign('filter_tags', get_taglist($query));
+}
+
// Virtualy associate a picture to a category
$query = '
SELECT id,name,uppercats,global_rank