Author Topic: Bug: Image error in duplicating product  (Read 5776 times)

Offline Boudi

  • Global Moderator
  • *****
  • Posts: 1167
  • Gender: Male
  • //o_-\\
    • Yze Webdesign
Bug: Image error in duplicating product
« on: April 01, 2015, 03:18:28 PM »
Hi,

Noticed an annoying bug in Bakery 1.71:

Create a product and upload image
Click SAVE
DUPLICATE product
Click SAVE
Change title
Set Online view to ON
Check box to delete image and search/fill the new image to upload
Click SAVE

Bug: the image from the previous product is gone. Both in backend/frontend. Re-upload the image is not possible because the image itself is still in the Media dir.

So the only workaround for now is delete all the Media ID files, reupload the pictures and do NOT duplicate products but create them one by one.

Tested on 2 different setups on different servers.

Boudi
...:: Bake the Unbakable ::...

Offline freeSbee

  • Moderator
  • ***
  • Posts: 1114
    • BAKERY - Website Baker shop module
Re: Bug: Image error in duplicating product
« Reply #1 on: April 01, 2015, 07:00:01 PM »
Hi Boudi

Thanks for your bug report and the accurate description of what you have done. It helped me a lot to locate the bug.

Quick fix. Search the file save_item.php (about line 297) for:
Code:
Only registered users can see contents. Please click here to Register or Login.
Replace by:
Code:
Only registered users can see contents. Please click here to Register or Login.

Regards Christoph

Offline Boudi

  • Global Moderator
  • *****
  • Posts: 1167
  • Gender: Male
  • //o_-\\
    • Yze Webdesign
Re: Bug: Image error in duplicating product
« Reply #2 on: April 01, 2015, 10:32:43 PM »
Allright, thnx  :-)

Test it out tomorrow :)
...:: Bake the Unbakable ::...

Offline Boudi

  • Global Moderator
  • *****
  • Posts: 1167
  • Gender: Male
  • //o_-\\
    • Yze Webdesign
Re: Bug: Image error in duplicating product
« Reply #3 on: April 02, 2015, 09:46:36 AM »
Update:

Bug has gone so happy. :-)

Good idea to implement this in an upgrade.

Again, thnx for your quick respond and solution.

Rgdz

Boudi

...:: Bake the Unbakable ::...