Author Topic: VM deletes the first image and replaces it with the new uploaded one  (Read 413 times)

MAD King

  • Jr. Member
  • **
  • Posts: 380
  • Supporter Membership - Gold
  • VirtueMart Version: Always the Latest
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:

Quote
File 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.
Joomla! 3.9.12
VirtueMart 3.6.2 10159

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 520
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: VM deletes the first image and replaces it with the new uploaded one
« Reply #1 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.

--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

MAD King

  • Jr. Member
  • **
  • Posts: 380
  • Supporter Membership - Gold
  • VirtueMart Version: Always the Latest
Re: VM deletes the first image and replaces it with the new uploaded one
« Reply #2 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.  :-[
Joomla! 3.9.12
VirtueMart 3.6.2 10159

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9997
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: VM deletes the first image and replaces it with the new uploaded one
« Reply #3 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
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

MAD King

  • Jr. Member
  • **
  • Posts: 380
  • Supporter Membership - Gold
  • VirtueMart Version: Always the Latest
Re: VM deletes the first image and replaces it with the new uploaded one
« Reply #4 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?
Joomla! 3.9.12
VirtueMart 3.6.2 10159