aboutsummaryrefslogtreecommitdiffstats
path: root/admin/batch_manager.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-03-29 09:46:33 +0000
committerpatdenice <patdenice@piwigo.org>2011-03-29 09:46:33 +0000
commit88eda5f32abaee6a5661e0081b0ecec6dbbaba2b (patch)
treed5c66bf3829a5b7a997c5fa50535b1c595eac5ab /admin/batch_manager.php
parenteb70a110d980cc045e009e9dc008098271193217 (diff)
feature:2236
add "all photos" prefilter git-svn-id: http://piwigo.org/svn/trunk@9912 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/batch_manager.php')
-rw-r--r--admin/batch_manager.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/admin/batch_manager.php b/admin/batch_manager.php
index fa3720b27..232c84f08 100644
--- a/admin/batch_manager.php
+++ b/admin/batch_manager.php
@@ -55,7 +55,7 @@ if (isset($_POST['submitFilter']))
if (isset($_POST['filter_prefilter_use']))
{
- $prefilters = array('caddie', 'last import', 'with no album', 'with no tag', 'with no virtual album', 'duplicates');
+ $prefilters = array('caddie', 'last import', 'with no album', 'with no tag', 'with no virtual album', 'duplicates', 'all photos');
if (in_array($_POST['filter_prefilter'], $prefilters))
{
$_SESSION['bulk_manager_filter']['prefilter'] = $_POST['filter_prefilter'];
@@ -240,6 +240,19 @@ SELECT id
array_from_query($query, 'id')
);
}
+
+ if ('all photos' == $_SESSION['bulk_manager_filter']['prefilter'])
+ {
+ $query = '
+SELECT id
+ FROM '.IMAGES_TABLE.'
+;';
+
+ array_push(
+ $filter_sets,
+ array_from_query($query, 'id')
+ );
+ }
}
if (isset($_SESSION['bulk_manager_filter']['category']))