Author Topic: Admin - Product Status - Availability image issue (php code inside JS)  (Read 1383 times)

profyart

  • Beginner
  • *
  • Posts: 8
  • A beginner
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:
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 ;)

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9919
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Thank you, I found 2 errors more of the same type. I will reupp the vm3.2.3, for that we have this version.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/