Fix must not overwrite the var that is an object of cache

This commit is contained in:
Laurent Destailleur 2022-09-12 14:17:14 +02:00
parent f48752fc16
commit a35d7f8a4b

View File

@ -1202,10 +1202,6 @@ if ($id > 0 || !empty($ref)) {
while ($i < $num) {
$objp = $db->fetch_object($resql);
$tmpproduct->id = $objp->fk_product;
$tmpproduct->ref = $objp->ref;
$tmpproduct->label = $objp->label;
if ($action == 'editline' && $lineid == $objp->dispatchlineid) {
print '<form name="editdispatchedlines" id="editdispatchedlines" action="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'#line_'.GETPOST('lineid', 'int').'" method="POST">
<input type="hidden" name="token" value="'.newToken().'">