Fix: bug #26991 : Action termine la saisie sans le demander
This commit is contained in:
parent
8d88035eaf
commit
3a3384da0d
@ -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;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user