News:

Support the VirtueMart project and become a member

Main Menu

Error in renderMail()

Started by vasiljevski, April 09, 2012, 15:12:34 PM

Previous topic - Next topic

vasiljevski

In components\com_virtuemart\helpers\shopfunctionsf.php renderMail()

if(JVM_VERSION == 2){
$q = 'SELECT `template` FROM `#__template_styles` WHERE `client_id`="0" AND `home`="1"';
} else {
$q = 'SELECT `template` FROM `#__template_styles` WHERE `client_id`="0" AND `home`="1"';
}

This produces error in Joomla 1.5 and it should be changed to:
if(JVM_VERSION == 2){
$q = 'SELECT `template` FROM `#__template_styles` WHERE `client_id`="0" AND `home`="1"';
} else {
$q = 'SELECT `template` FROM `#__templates_menu` WHERE `client_id`="0" AND `menuid`="0"';
}


This might be a copy/paste error because there is a check for Joomla version but query is not changed accordingly :)

Milbo

thanks, just changed it as you suggested.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

vasiljevski

Your welcome :)
I just checked SVN and there is still  "#__template_styles" instead of "#__templates_menu" in J1.5 there is no table "#__template_styles" :)

Milbo

Thx, was in a hurry, ... will be committed soon.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/