VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: cmp on August 11, 2014, 05:27:39 AM

Title: getOrderByList drop down URL contains SQL
Post by: cmp on August 11, 2014, 05:27:39 AM
Hi, I am new to this stuff. I had a problem with the links generated in the manufacturer sort by menu when selecting a product attribute and then a manufacturer.

Somehow the url was including some of the SQL query.

Fixed the problem by adding :

$ptn = '/,`p`./';
$rplce = ',';
$link = preg_replace($ptn, $rplce, $link);


at line 2171 in administrator/components/com_virtuemart/models/product.php

couldn't figure how "`p`." was getting into the url to begin with.

Am running Joomla 2.5.24 and Virtuemart 2.6.6

Has anyone else had this issue?