Ignore:
Timestamp:
Mar 29, 2011, 11:46:33 AM (14 years ago)
Author:
patdenice
Message:

feature:2236
add "all photos" prefilter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/batch_manager.php

    r9068 r9912  
    5656  if (isset($_POST['filter_prefilter_use']))
    5757  {
    58     $prefilters = array('caddie', 'last import', 'with no album', 'with no tag', 'with no virtual album', 'duplicates');
     58    $prefilters = array('caddie', 'last import', 'with no album', 'with no tag', 'with no virtual album', 'duplicates', 'all photos');
    5959    if (in_array($_POST['filter_prefilter'], $prefilters))
    6060    {
     
    234234  FROM '.IMAGES_TABLE.'
    235235  WHERE file IN (\''.implode("','", $duplicate_files).'\')
     236;';
     237
     238    array_push(
     239      $filter_sets,
     240      array_from_query($query, 'id')
     241      );
     242  }
     243
     244  if ('all photos' == $_SESSION['bulk_manager_filter']['prefilter'])
     245  {
     246    $query = '
     247SELECT id
     248  FROM '.IMAGES_TABLE.'
    236249;';
    237250
Note: See TracChangeset for help on using the changeset viewer.