diff options
author | plegall <plg@piwigo.org> | 2011-01-01 14:35:52 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2011-01-01 14:35:52 +0000 |
commit | 4b771b5ab632a8609e21bb538fed78a68d620cd0 (patch) | |
tree | ffebae3089c12d5eea963c809dd08284f87152bb /admin/batch_manager.php | |
parent | 4effe045ee0b924cdcf17c7499d12ab4467433a3 (diff) |
feature 2092 added: Batch Manager can filter all photos with no tag
feature 1866 added: Batch Manager can synchronize metadata
git-svn-id: http://piwigo.org/svn/trunk@8422 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/batch_manager.php')
-rw-r--r-- | admin/batch_manager.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/admin/batch_manager.php b/admin/batch_manager.php index e11c8213e..2288acfb2 100644 --- a/admin/batch_manager.php +++ b/admin/batch_manager.php @@ -192,6 +192,22 @@ SELECT ); } + if ('with no tag' == $_SESSION['bulk_manager_filter']['prefilter']) + { + $query = ' +SELECT + id + FROM '.IMAGES_TABLE.' + LEFT JOIN '.IMAGE_TAG_TABLE.' ON id = image_id + WHERE tag_id is null +;'; + array_push( + $filter_sets, + array_from_query($query, 'id') + ); + } + + if ('duplicates' == $_SESSION['bulk_manager_filter']['prefilter']) { // we could use the group_concat MySQL function to retrieve the list of |