[BUG] Multiple deletes only delete first item selected....

Phoca Gallery - image gallery extension
TheEdge
Phoca Member
Phoca Member
Posts: 28
Joined: 07 Jan 2008, 22:28

G'Day,

Post by TheEdge »

G'Day,

- PhocaGallery 1.3
- This happens in both IE and FireFox
- Select Category, Select a Category where the images have been deleted off the server
- Select all the images on the page
- Select "Delete" and you will be prompted to delete all the selected items
- However only the first item is deleted
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48041
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Hi, I ha

Post by Jan »

Hi,

I have selected a category, delete one image on the server, then Phoca Gallery shows me e.g. 3 images and one without photo but with the text (The file is not on the server more), I have deleted all items and all were deleted ???

Please can you specify it:
If you say only the first item is deleted, do you mean deleted from database or from disc...
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48041
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

If you think, they w

Post by Jan »

If you think, they will be not deleted from disc, you right... There was a check before we add subcategories...If you will delete the file from database, it will be deleted from disc too but ony in case (check) that the file is not used by other category... I take a look at it...Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48041
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Sorry, now I now how

Post by Jan »

Sorry, now I now how did I do:

PHOCA GALLERY DOESN'T DELETE ORIGINAL FILES FROM DISC because it didn't create them, it only remove thumbnails but original files must be deleted:

1. via FTP or
2. via Media Manager ... the same way as they were created...
If you find Phoca extensions useful, please support the project
TheEdge
Phoca Member
Phoca Member
Posts: 28
Joined: 07 Jan 2008, 22:28

Jan,- Th

Post by TheEdge »

Jan,

- Thanks for the feedback. I believe the component is working as it should.
- One thing that is confusing though is that if you select multiple images to delete and then click delete it still says "File deleted" ie singular instead of "x Files deleted" which would be more "obvious" to the user.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48041
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Yes, there is a fore

Post by Jan »

Yes, there is a foreach (i deletes e.g. 10 images) and after this foreach it comes the message...

You can rename the File deleted to File(s) deleted
If you find Phoca extensions useful, please support the project
TheEdge
Phoca Member
Phoca Member
Posts: 28
Joined: 07 Jan 2008, 22:28

Surely it would be b

Post by TheEdge »

Surely it would be better for the script to count the files deleted and output:

x Files(s) deleted
Post Reply