Some order php 8 warning
This commit is contained in:
parent
b83f57da48
commit
b8f5dc74d7
@ -1368,7 +1368,7 @@ class Commande extends CommonOrder
|
|||||||
}
|
}
|
||||||
// Possibility to add external linked objects with hooks
|
// Possibility to add external linked objects with hooks
|
||||||
$this->linked_objects[$this->origin] = $this->origin_id;
|
$this->linked_objects[$this->origin] = $this->origin_id;
|
||||||
if (is_array($object->other_linked_objects) && !empty($object->other_linked_objects)) {
|
if (isset($object->other_linked_objects) && is_array($object->other_linked_objects) && !empty($object->other_linked_objects)) {
|
||||||
$this->linked_objects = array_merge($this->linked_objects, $object->other_linked_objects);
|
$this->linked_objects = array_merge($this->linked_objects, $object->other_linked_objects);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -47,7 +47,7 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
|
|||||||
}
|
}
|
||||||
echo '<tr class="'.$trclass.'" >';
|
echo '<tr class="'.$trclass.'" >';
|
||||||
echo '<td class="linkedcol-element" >'.$langs->trans("CustomerOrder");
|
echo '<td class="linkedcol-element" >'.$langs->trans("CustomerOrder");
|
||||||
if (!empty($showImportButton) && $conf->global->MAIN_ENABLE_IMPORT_LINKED_OBJECT_LINES) {
|
if (!empty($showImportButton) && !empty($conf->global->MAIN_ENABLE_IMPORT_LINKED_OBJECT_LINES)) {
|
||||||
print '<a class="objectlinked_importbtn" href="'.$objectlink->getNomUrl(0, '', 0, 1).'&action=selectlines" data-element="'.$objectlink->element.'" data-id="'.$objectlink->id.'" > <i class="fa fa-indent"></i> </a';
|
print '<a class="objectlinked_importbtn" href="'.$objectlink->getNomUrl(0, '', 0, 1).'&action=selectlines" data-element="'.$objectlink->element.'" data-id="'.$objectlink->id.'" > <i class="fa fa-indent"></i> </a';
|
||||||
}
|
}
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user