Update objectonoff.php
This commit is contained in:
parent
6169f76a34
commit
284649fd4b
@ -88,7 +88,10 @@ if (($action == 'set') && !empty($id)) {
|
|||||||
$triggerkey = strtoupper($element).'_UPDATE';
|
$triggerkey = strtoupper($element).'_UPDATE';
|
||||||
// Special case
|
// Special case
|
||||||
if ($triggerkey == 'SOCIETE_UPDATE') {
|
if ($triggerkey == 'SOCIETE_UPDATE') {
|
||||||
$triggerkey = 'COMPANY_UPDATE';
|
$triggerkey = 'COMPANY_MODIFY';
|
||||||
|
}
|
||||||
|
if ($triggerkey == 'PRODUCT_UPDATE') {
|
||||||
|
$triggerkey = 'PRODUCT_MODIFY';
|
||||||
}
|
}
|
||||||
|
|
||||||
$object->setValueFrom($field, $value, $tablename, $id, $format, '', $user, $triggerkey);
|
$object->setValueFrom($field, $value, $tablename, $id, $format, '', $user, $triggerkey);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user