diff --git a/htdocs/actioncomm.class.php b/htdocs/actioncomm.class.php index 1548264b309..ea1450651f3 100644 --- a/htdocs/actioncomm.class.php +++ b/htdocs/actioncomm.class.php @@ -98,7 +98,7 @@ class ActionComm // Clean parameters $this->label=trim($this->label); $this->location=trim($this->location); - $this->note=trim($this->note); + $this->note=dol_htmlcleanlastbr(trim($this->note)); if (! $this->percentage) $this->percentage = 0; if (! $this->priority) $this->priority = 0; if (! $this->punctual) $this->punctual = 0; diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index 0e3e8b6c61e..2d6c4ecf551 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -161,7 +161,7 @@ if ($_POST["action"] == 'add_action') if ($actioncomm->type_code == 'AC_RDV') { // RDV - if ($actioncomm->datef) + if ($actioncomm->datef && $actioncomm->datef < dol_now('tzref')) { $actioncomm->percentage = 100; }