Skip to content

Commit

Permalink
Include notrigger
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 21, 2018
1 parent 0ff148d commit 423918b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions htdocs/contrat/class/contrat.class.php
Expand Up @@ -261,9 +261,10 @@ function close_line($user, $line_id, $date_end, $comment='')
*
* @param User $user Object User making action
* @param int|string $date_start Date start (now if empty)
* @param int $notrigger 1=Does not execute triggers, 0=Execute triggers
* @return int <0 if KO, >0 if OK
*/
function activateAll($user, $date_start='')
function activateAll($user, $date_start='', $notrigger=0)
{
if (empty($date_start)) $date_start = dol_now();

Expand Down Expand Up @@ -294,7 +295,7 @@ function activateAll($user, $date_start='')

if (! $error && $this->statut == 0)
{
$result=$this->validate($user);
$result=$this->validate($user, '', $notrigger);
if ($result < 0) $error++;
}

Expand Down

0 comments on commit 423918b

Please sign in to comment.