mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
remove warning
This commit is contained in:
parent
944e2a8032
commit
7ca1df6d46
|
|
@ -133,7 +133,7 @@ if (empty($reshook))
|
|||
$error = 0;
|
||||
|
||||
// Set if we used free entry or predefined product
|
||||
$idprod = GETPOST('idprod', 'int');
|
||||
$idprod = (int) GETPOST('idprod', 'int');
|
||||
$qty = GETPOST('qty', 'int');
|
||||
$qty_frozen = GETPOST('qty_frozen', 'int');
|
||||
$disable_stock_change = GETPOST('disable_stock_change', 'int');
|
||||
|
|
@ -172,8 +172,7 @@ if (empty($reshook))
|
|||
$bomline->position = ($ranktouse + 1);
|
||||
|
||||
$result = $bomline->create($user);
|
||||
if ($result <= 0)
|
||||
{
|
||||
if ($result <= 0) {
|
||||
setEventMessages($bomline->error, $bomline->errors, 'errors');
|
||||
$action = '';
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user