Changeset 7555


Ignore:
Timestamp:
11/01/10 22:06:30 (8 years ago)
Author:
plg
Message:

bug 1988 fixed: avoid duplicate thumbnails for photos linked to several
categories when managing all photos of one of these categories.

Location:
branches/2.1/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/admin/element_set_global.php

    r7504 r7555  
    467467 
    468468  $query.= ' 
    469   WHERE id IN ('.implode(',', $page['cat_elements_id']).') 
     469  WHERE id IN ('.implode(',', $page['cat_elements_id']).')'; 
     470 
     471  if (is_numeric($_GET['cat'])) 
     472  { 
     473    $query.= ' 
     474    AND category_id = '.$_GET['cat']; 
     475  } 
     476 
     477  $query.= ' 
    470478  '.$conf['order_by'].' 
    471479  LIMIT '.$page['nb_images'].' OFFSET '.$page['start'].' 
  • branches/2.1/admin/element_set_unit.php

    r7504 r7555  
    212212 
    213213  $query.= ' 
    214   WHERE id IN ('.implode(',', $page['cat_elements_id']).') 
     214  WHERE id IN ('.implode(',', $page['cat_elements_id']).')'; 
     215 
     216  if (is_numeric($_GET['cat'])) 
     217  { 
     218    $query.= ' 
     219    AND category_id = '.$_GET['cat']; 
     220  } 
     221 
     222  $query.= ' 
    215223  '.$conf['order_by'].' 
    216224  LIMIT '.$page['nb_images'].' OFFSET '.$page['start'].' 
Note: See TracChangeset for help on using the changeset viewer.