fix parameter of getpost in inventory.php (#36070)

This commit is contained in:
Frédéric FRANCE 2025-11-02 21:33:21 +01:00 committed by GitHub
parent 7ebb809547
commit 34d95eeac1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1194,7 +1194,7 @@ if ($resql) {
if ($permissiontoupdatestock) {
print '<a class="reposition" href="'.DOL_URL_ROOT.'/product/inventory/inventory.php?id='.$object->id.'&lineid='.$obj->rowid.'&action=deleteline&page='.$page.$paramwithsearch.'&token='.newToken().'">'.img_delete().'</a>';
}
$qty_tmp = price2num(GETPOST("id_".$obj->rowid."_input_tmp", 'MS')) >= 0 ? GETPOST("id_".$obj->rowid."_input_tmp") : $qty_view;
$qty_tmp = price2num(GETPOST("id_".$obj->rowid."_input_tmp"), 'MS') >= 0 ? GETPOST("id_".$obj->rowid."_input_tmp") : $qty_view;
print '<input type="hidden" class="maxwidth50 right realqty" name="id_'.$obj->rowid.'_input_tmp" id="id_'.$obj->rowid.'_input_tmp" value="'.$qty_tmp.'">';
print '</td>';
} else {