/
Images are deleted during link approval process

Images are deleted during link approval process

Imported From: http://groups.google.com/group/in-portal-bugs/browse_thread/thread/cb3968d3db4667b9#

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.

Another small problem here - such links (that needed to be approved) have broken icon in catalog. They should have Pending icon I suppose.

Related Tasks

INP-928 - Getting issue details... STATUS

INP-1128 - Getting issue details... STATUS