Fix: bug #26991 : Action termine la saisie sans le demander

This commit is contained in:
Laurent Destailleur 2009-07-15 23:14:15 +00:00
parent 8d88035eaf
commit 3a3384da0d
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;
}