Changeset 28318


Ignore:
Timestamp:
04/30/14 20:43:45 (5 years ago)
Author:
rvelices
Message:

batch manager prefilter all does not make a sql query if there is also another filter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/batch_manager.php

    r28087 r28318  
    290290 
    291291  case 'all_photos': 
    292     $query = ' 
     292    if ( count($_SESSION['bulk_manager_filter']) == 1 ) 
     293    {// make the query only if this is the only filter 
     294      $query = ' 
    293295SELECT id 
    294296  FROM '.IMAGES_TABLE.' 
    295297  '.$conf['order_by']; 
    296298 
    297     $filter_sets[] = array_from_query($query, 'id'); 
    298  
     299      $filter_sets[] = array_from_query($query, 'id'); 
     300    } 
    299301    break; 
    300302  } 
Note: See TracChangeset for help on using the changeset viewer.