diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php index fa825bcb84d..ba3ff77d394 100644 --- a/htdocs/core/class/html.formother.class.php +++ b/htdocs/core/class/html.formother.class.php @@ -57,7 +57,8 @@ class FormOther } /** - * Return HTML code for scanner tool + * Return HTML code for scanner tool. + * This must be called into an existing
'; return $out; } diff --git a/htdocs/product/inventory/inventory.php b/htdocs/product/inventory/inventory.php index 970676c34b6..2abc830eb7c 100644 --- a/htdocs/product/inventory/inventory.php +++ b/htdocs/product/inventory/inventory.php @@ -99,6 +99,10 @@ $now = dol_now(); * Actions */ +if ($cancel) { + $action = ''; +} + if ($action == 'cancel_record' && $permissiontoadd) { $object->setCanceled($user); }