VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: MAD King on August 29, 2019, 20:56:32 PM

Title: VM deletes the first image and replaces it with the new uploaded one
Post by: MAD King on August 29, 2019, 20:56:32 PM
I just updated to the latest VM 3.6.0 10113 on Joomla 3.9.11.
When I edit a product by adding another image to it, VM deletes the first image and replaces it with the new uploaded one.

Message after uploading and saving a product:

QuoteFile deleted /home/public_html/new-site/images/stories/virtuemart/product/resized/48465BAKa_0x351.jpg
File /home/public_html/new-site/images/stories/virtuemart/product/48465_x.jpg uploaded
File deleted /home/public_html/new-site/images/stories/virtuemart/product/48465BAKa.jpg
Product successfully saved
I think it is a bug.
Title: Re: VM deletes the first image and replaces it with the new uploaded one
Post by: StefanSTS on August 29, 2019, 22:19:10 PM
That works in my 3.6.0.10113.

Make sure you mark the radio button upload and not replace.

Title: Re: VM deletes the first image and replaces it with the new uploaded one
Post by: MAD King on August 29, 2019, 22:28:54 PM
This must be new then. I have never paid attention to the radio buttons, since it was always on none.
Indeed, with the new version it jumps to the "Replace" radio button.
Thank you very much for that hint.
Not a bug. Just tomatoes on eyes.  :-[
Title: Re: VM deletes the first image and replaces it with the new uploaded one
Post by: Milbo on August 30, 2019, 15:47:20 PM
Yeh, but you are not the only one falling into that. I wonder actually if it was a good idea.

It is simple to remove. just the line 41 in the mediahandler.js in FE/assets/js
Title: Re: VM deletes the first image and replaces it with the new uploaded one
Post by: MAD King on August 30, 2019, 15:51:57 PM
Thank you, Milbo, but since I know it know, I rather not messing with the code. (That just reminds me of "Blues Brothers - Messin' with the kid") lol
Maybe you guys can change it back to the way it was in one of the next updates?