Update commonobject.class.php
This commit is contained in:
parent
1ca1f111b3
commit
da91c5f5ef
@ -2301,7 +2301,11 @@ abstract class CommonObject
|
|||||||
// Triggers
|
// Triggers
|
||||||
if (!$error && !$notrigger) {
|
if (!$error && !$notrigger) {
|
||||||
// Call triggers
|
// Call triggers
|
||||||
|
if (get_class($this) == 'Commande') {
|
||||||
|
$result = $this->call_trigger('ORDER_MODIFY', $user);
|
||||||
|
}else{
|
||||||
$result = $this->call_trigger(strtoupper(get_class($this)).'_MODIFY', $user);
|
$result = $this->call_trigger(strtoupper(get_class($this)).'_MODIFY', $user);
|
||||||
|
}
|
||||||
if ($result < 0) {
|
if ($result < 0) {
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user