# WARNING: head commit changed in the meantime

Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
This commit is contained in:
Laurent Destailleur
2022-02-04 15:40:28 +01:00
9 changed files with 35 additions and 8 deletions

View File

@@ -2304,7 +2304,11 @@ abstract class CommonObject
// Triggers
if (!$error && !$notrigger) {
// Call triggers
$result = $this->call_trigger(strtoupper(get_class($this)).'_MODIFY', $user);
if (get_class($this) == 'Commande') {
$result = $this->call_trigger('ORDER_MODIFY', $user);
} else {
$result = $this->call_trigger(strtoupper(get_class($this)).'_MODIFY', $user);
}
if ($result < 0) {
$error++;
}