Protect product object for line label
This commit is contained in:
parent
41e54529b0
commit
5911d7d0c0
1 changed files with 1 additions and 1 deletions
|
|
@ -5218,7 +5218,7 @@ abstract class CommonObject
|
|||
}
|
||||
$productstatic = $line->product;
|
||||
|
||||
$this->tpl['label'] .= $productstatic->getNomUrl(1);
|
||||
$this->tpl['label'] .= (is_object($productstatic) ? $productstatic->getNomUrl(1) : $line->ref);
|
||||
$this->tpl['label'] .= ' - '.(!empty($line->label) ? $line->label : $line->product_label);
|
||||
// Dates
|
||||
if ($line->product_type == 1 && ($date_start || $date_end)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue