soaivu / clipbucket

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

Delete Orphan Photos in batch #396

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Go to Admin_Area -> Orphan Photos 
2. Select one or more photos to delete
3. Click on Delete Button (on top)

What is the expected output? What do you see instead?

Photos aren't deleted !

What version of the product are you using? On what operating system?

CB 2.6

Correction :

Modify the file admin_area/orphan_photos.php (line 20) with this :

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 issue reported on code.google.com by didier.s...@gmail.com on 6 Apr 2013 at 10:25

GoogleCodeExporter commented 8 years ago

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

GoogleCodeExporter commented 8 years ago

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