Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001114 [CubeCart v4] Admin Control Panel minor have not tried 2008-06-30 23:19 2008-08-19 04:22
Reporter estelle View Status public  
Assigned To al
Priority normal Resolution fixed  
Status closed   Product Version 4.2.2
Summary 0001114: Image Management - images in folders cannot be deleted
Description When trying to delete an image from a folder, the message 'Image was deleted' is displayed, however the image wasn't actually deleted - it still exists in the file system.

The image is temporarily removed from the database (i.e. the Manage Images page) but later returns when the buildDatabase() function is run again.

Problem is in classes/filemanager.class.php
This line:
            $file = imgPath($result[0]['filename'], false, 'root');
Needs to be this:
            $file = imgPath($result[0]['filepath'], false, 'root');

Perhaps this line should also be changed in the same way?
            $thumbnail = imgPath($result[0]['filename'], true, 'root');
Additional Information
Tags No tags attached.
Browser N/A
Install Method N/A
MySQL Version 4.1.x
PHP Version 5.2.x
Server OS Linux/Unix
Skin
Attached Files

- Relationships

-  Notes
User avatar (0002299)
al (administrator)
2008-07-01 06:35

Thanks Estelle you were spot on. Thumbnail updated too.

- Issue History
Date Modified Username Field Change
2008-06-30 23:19 estelle New Issue
2008-06-30 23:19 estelle PHP Version => 5.2.x
2008-06-30 23:19 estelle MySQL Version => 4.1.x
2008-06-30 23:19 estelle Install Method => N/A
2008-06-30 23:19 estelle Server OS => Linux/Unix
2008-06-30 23:19 estelle Browser => N/A
2008-07-01 06:35 al Status new => resolved
2008-07-01 06:35 al Resolution open => fixed
2008-07-01 06:35 al Assigned To => al
2008-07-01 06:35 al Note Added: 0002299
2008-07-15 04:09 martin Target Version => 4.2.3
2008-07-15 04:09 martin Fixed in Version => 4.2.3
2008-08-19 04:22 martin Status resolved => closed


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker