diff --git a/htdocs/core/actions_massactions.inc.php b/htdocs/core/actions_massactions.inc.php
index 26ea16af4bb..97c1904d26e 100644
--- a/htdocs/core/actions_massactions.inc.php
+++ b/htdocs/core/actions_massactions.inc.php
@@ -878,7 +878,10 @@ if (!$error && $massaction == 'cancelorders')
setEventMessages($langs->trans("ErrorObjectMustHaveStatusValidToBeCanceled", $cmd->ref), null, 'errors');
$error++;
break;
- } else $result = $cmd->cancel();
+ } else {
+ // TODO We do not provide warehouse so no stock change here for the moment.
+ $result = $cmd->cancel();
+ }
if ($result < 0)
{
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 68c30f9290a..051834d4497 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -4036,18 +4036,18 @@ class Form
* print '});'."\n";
* print ''."\n";
*
- * @param string $page Url of page to call if confirmation is OK. Can contains parameters (param 'action' and 'confirm' will be reformated)
- * @param string $title Title
- * @param string $question Question
- * @param string $action Action
- * @param array $formquestion An array with complementary inputs to add into forms: array(array('label'=> ,'type'=> , ))
- * type can be 'hidden', 'text', 'password', 'checkbox', 'radio', 'date', 'morecss', ...
- * @param string $selectedchoice '' or 'no', or 'yes' or '1' or '0'
- * @param int|string $useajax 0=No, 1=Yes, 2=Yes but submit page with &confirm=no if choice is No, 'xxx'=Yes and preoutput confirm box with div id=dialog-confirm-xxx
- * @param int $height Force height of box (0 = auto)
- * @param int $width Force width of box ('999' or '90%'). Ignored and forced to 90% on smartphones.
- * @param int $disableformtag 1=Disable form tag. Can be used if we are already inside a