feature:2236
add "all photos" prefilter git-svn-id: http://piwigo.org/svn/trunk@9912 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
eb70a110d9
commit
88eda5f32a
4 changed files with 18 additions and 2 deletions
|
|
@ -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']))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue