Changeset 12576 for trunk/admin


Ignore:
Timestamp:
Nov 7, 2011, 11:53:23 AM (13 years ago)
Author:
plg
Message:

merge r12575 from branch 2.3 to trunk

bug 2491 fixed: on album admin screen, don't display "1 album moved" message
when the album is not really moved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_modify.php

    r11041 r12576  
    7676  }
    7777
    78   if (isset($_POST['parent']) and $cat_info['id_uppercat'] != $_POST['parent'])
     78  // in case the use moves his album to the gallery root, we force
     79  // $_POST['parent'] from 0 to null to be compared with
     80  // $cat_info['id_uppercat']
     81  if (empty($_POST['parent']))
     82  {
     83    $_POST['parent'] = null;
     84  }
     85 
     86  if ($cat_info['id_uppercat'] != $_POST['parent'])
    7987  {
    8088    move_categories( array($_GET['cat_id']), $_POST['parent'] );
Note: See TracChangeset for help on using the changeset viewer.