News:

Looking for documentation? Take a look on our wiki

Main Menu

bug : unpublished related product

Started by Studio 42, June 10, 2015, 02:28:54 AM

Previous topic - Next topic

Studio 42

hi,
When you unpublish a related product, the related customfield is set but $customfield->display is empty because
$related = $pModel->getProduct((int)$customfield->customfield_value,TRUE,$customfield->wPrice,TRUE,1);
return nothing in customfields model line 1156 in vm 3.0.9.
I think this must be unset when the related product is not published.
changing line 1158
if(!$related) {
break;
}

to
if(!$related) {
unset($customfields[$k]);
break;
}

work for me.

see attached for bug screenshot
Greets,
Patrick

Milbo

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