Changeset 2576


Ignore:
Timestamp:
Sep 23, 2008, 11:42:01 PM (16 years ago)
Author:
plg
Message:

bug 867 fixed: if the caddie is under management in admin/element_set,
dissociating any image from a category doesn't hide from the caddie.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/element_set_global.php

    r2575 r2576  
    114114;';
    115115    $dissociables = array_from_query($query, 'id');
    116     echo '<pre>'; print_r($dissociables); echo '</pre>';
    117116
    118117    if (!empty($dissociables))
     
    126125      pwg_query($query);
    127126
    128       $page['cat_elements_id'] = array_diff(
    129         $page['cat_elements_id'],
    130         $dissociables
    131       );
     127      // we remove the dissociated images if we are currently displaying the
     128      // category to dissociate from.
     129      if (is_numeric($_GET['cat']) and $_POST['dissociate'] == $_GET['cat'])
     130      {
     131        $page['cat_elements_id'] = array_diff(
     132          $page['cat_elements_id'],
     133          $dissociables
     134          );
     135      }
    132136    }
    133137
Note: See TracChangeset for help on using the changeset viewer.