Admin - Product Status - Availability image issue (php code inside JS)

Started by profyart, May 23, 2017, 11:58:10 AM

Previous topic - Next topic

profyart

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

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

Problem location:
\administrator\components\com_virtuemart\assets\js\products.js Line 97:
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 ;)

Milbo

Thank you, I found 2 errors more of the same type. I will reupp the vm3.2.3, for that we have this version.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/