Fix phpcs
This commit is contained in:
parent
c3a047ee06
commit
53f8ff060a
@ -787,10 +787,9 @@ abstract class CommonDocGenerator
|
||||
$resarray = $this->fill_substitutionarray_with_extrafields($line, $resarray, $extrafields, $array_key, $outputlangs);
|
||||
|
||||
// Load product data optional fields to the line -> enables to use "line_product_options_{extrafield}"
|
||||
if (isset($line->fk_product) && $line->fk_product > 0)
|
||||
{
|
||||
if (isset($line->fk_product) && $line->fk_product > 0) {
|
||||
$tmpproduct = new Product($this->db);
|
||||
$result = $tmpproduct->fetch($line->fk_product);
|
||||
result = $tmpproduct->fetch($line->fk_product);
|
||||
foreach ($tmpproduct->array_options as $key=>$label)
|
||||
$resarray["line_product_".$key] = $label;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user