soaivu / clipbucket

Automatically exported from code.google.com/p/clipbucket
0 stars 0 forks source link

Delete Orphan Photos in batch #395

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

CB Version : 2.6
Issue : Deleting Orphan photos in batch doesn't work !

There's a small bug in file admin_area/orphan_photos.php (on line 20).

You have to replace :
if(isset($_POST['deleted_selected']))

By this code :
if(isset($_POST['delete_selected']))

Regards,
Didier

Original issue reported on code.google.com by didier.s...@gmail.com on 6 Apr 2013 at 10:04

GoogleCodeExporter commented 8 years ago
Complete correction is :

if(isset($_POST['delete_selected']))   //HACK : delete_selected in place of 
deleted_selected
{

    $total = count($_POST['check_photo']);  //HACK Add count
    for($i=0;$i<$total;$i++)
    {
        $cbphoto->delete_photo($_POST['check_photo'][$i],true); //HACK : Add true
    }
    $eh->flush();
    e($total." photos has been deleted successfully.","m");
}

Original comment by didier.s...@gmail.com on 6 Apr 2013 at 10:26

GoogleCodeExporter commented 8 years ago

Original comment by zomail...@gmail.com on 7 May 2013 at 10:23

GoogleCodeExporter commented 8 years ago
Issue 396 has been merged into this issue.

Original comment by arslan...@gmail.com on 22 May 2013 at 8:34

GoogleCodeExporter commented 8 years ago
Thanks to didier.saintes , fixed in rev 1068

Original comment by arslan...@gmail.com on 22 May 2013 at 8:36