Merge pull request #8966 from hregis/7.0_bug6

Fix: MEMBER_MODIFY trigger not called if i change only extrafields
This commit is contained in:
Laurent Destailleur 2018-06-18 10:53:35 +02:00 committed by GitHub
commit 3c55e50bac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -599,14 +599,14 @@ class Adherent extends CommonObject
$error++;
}
}
}
if (! $error && ! $notrigger)
{
// Call trigger
$result=$this->call_trigger('MEMBER_MODIFY',$user);
if ($result < 0) { $error++; }
// End call triggers
}
if (! $error && ! $notrigger)
{
// Call trigger
$result=$this->call_trigger('MEMBER_MODIFY',$user);
if ($result < 0) { $error++; }
// End call triggers
}
if (! $error)