Fix: bug #26991 : Action terminée à la saisie sans le demander
This commit is contained in:
parent
8d88035eaf
commit
3a3384da0d
@ -98,7 +98,7 @@ class ActionComm
|
|||||||
// Clean parameters
|
// Clean parameters
|
||||||
$this->label=trim($this->label);
|
$this->label=trim($this->label);
|
||||||
$this->location=trim($this->location);
|
$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->percentage) $this->percentage = 0;
|
||||||
if (! $this->priority) $this->priority = 0;
|
if (! $this->priority) $this->priority = 0;
|
||||||
if (! $this->punctual) $this->punctual = 0;
|
if (! $this->punctual) $this->punctual = 0;
|
||||||
|
|||||||
@ -161,7 +161,7 @@ if ($_POST["action"] == 'add_action')
|
|||||||
if ($actioncomm->type_code == 'AC_RDV')
|
if ($actioncomm->type_code == 'AC_RDV')
|
||||||
{
|
{
|
||||||
// RDV
|
// RDV
|
||||||
if ($actioncomm->datef)
|
if ($actioncomm->datef && $actioncomm->datef < dol_now('tzref'))
|
||||||
{
|
{
|
||||||
$actioncomm->percentage = 100;
|
$actioncomm->percentage = 100;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user