VirtueMart Forum

VirtueMart 2 + 3 => Virtuemart Development and bug reports => Topic started by: profyart on May 23, 2017, 11:58:10 am

Title: Admin - Product Status - Availability image issue (php code inside JS)
Post by: profyart on May 23, 2017, 11:58:10 am
Joomla 3.7
VM 3.2.2

Location of bug: Admin Panel - Product - Product Status: Availabiliy field.
http://demo.virtuemart.net/administrator/index.php?option=com_virtuemart&view=product&task=edit&virtuemart_product_id=300 (http://demo.virtuemart.net/administrator/index.php?option=com_virtuemart&view=product&task=edit&virtuemart_product_id=300)

Choose any image in "Select image" dropdown and Image will not show.

Problem location:
\administrator\components\com_virtuemart\assets\js\products.js Line 97:
Code: [Select]
jQuery('#imagelib').attr({ src:'<?php echo JURI::root(true).$this->imagePath ?>'+$newimage, alt:$newimage });


As you can see - there is php code in JS script instead of path to image ;)
Title: Re: Admin - Product Status - Availability image issue (php code inside JS)
Post by: Milbo on May 24, 2017, 07:19:52 am
Thank you, I found 2 errors more of the same type. I will reupp the vm3.2.3, for that we have this version.