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
thx,
fix is now included here http://dev.virtuemart.net/projects/virtuemart/files vm3.0.9.4