-
Type: Bug Report
-
Status: New
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 5.2.0-RC1
-
Fix Version/s: None
-
Component/s: Admin Interfaces
-
Labels:None
-
External issue URL:
-
Change Log Message:Fixes catalog item (uploaded via flash uploader) images deleted on approve
-
Story Points:1
-
External issue ID:1369
-
Copy Issue Key:
-
Patch Instructions:
[b]1.[/b] I've stumbled upon a problem during link approval (from Admin Console).
There are 2 category permissions:
LINK.OWNER.MODIFY - changes, user makes to it's link are immediately seen on Front-End
LINK.OWNER.MODIFY.PENDING - changes, user makes to it's link are stored in another link record for admin to approve/decline
When user has LINK.OWNER.MODIFY permission it works, like a charm. However, there are a problems in creating a link, that contains all changes made by user.
All files are copied normally. Images are also copied on disk (e.g. image_one.jpg will be copied to image_one_1.jpg), but original image filename stays in link record.
This way approving a link will delete all it's images from disk keeping broken records in Images table.
Since images are copied at least, then I suppose it's working partially. Then we need to ensure, that copied image filenames are put back into Images table record associated with the link, that will hold all modifications.
[b]2.[/b] Another small problem here - such links (that needed to be approved) have broken icon in catalog. They should have Pending icon I suppose.