Fix dispatch - php warning on tmpproduct
This commit is contained in:
parent
a0f5c69ccd
commit
251e0b1364
@ -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().'">
|
||||
@ -1237,6 +1233,9 @@ if ($id > 0 || !empty($ref)) {
|
||||
} else {
|
||||
$tmpproduct = $conf->cache['product'][$objp->fk_product];
|
||||
}
|
||||
$tmpproduct->id = $objp->fk_product;
|
||||
$tmpproduct->ref = $objp->ref;
|
||||
$tmpproduct->label = $objp->label;
|
||||
print $tmpproduct->getNomUrl(1);
|
||||
print ' - '.$objp->label;
|
||||
print "</td>\n";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user