Fix: Do not report trigger errors twice.
Fix: Error when creating event was not reported. Conflicts: htdocs/comm/action/fiche.php
This commit is contained in:
parent
b499efeccf
commit
4b8d39af9d
@ -4,6 +4,8 @@ English Dolibarr ChangeLog
|
||||
|
||||
|
||||
***** ChangeLog for 3.5.1 compared to 3.5.0 *****
|
||||
Fix: Do not report trigger errors twice.
|
||||
Fix: Error when creating event was not reported.
|
||||
Fix: Bug of import of agenda when using https link
|
||||
Fix: Field nature not saved correctly
|
||||
Fix: Substituion of extra field was ko for order
|
||||
|
||||
@ -261,8 +261,8 @@ if ($action == 'add_action')
|
||||
{
|
||||
$db->rollback();
|
||||
$langs->load("errors");
|
||||
$error=$langs->trans($actioncomm->error);
|
||||
setEventMessage($error,'errors');
|
||||
if (! empty($actioncomm->error)) setEventMessage($langs->trans($actioncomm->error), 'errors');
|
||||
if (count($actioncomm->errors)) setEventMessage($actioncomm->errors, 'errors');
|
||||
$action = 'create';
|
||||
}
|
||||
}
|
||||
|
||||
@ -167,8 +167,8 @@ class Interfaces
|
||||
// Action KO
|
||||
$nbtotal++;
|
||||
$nbko++;
|
||||
if (! empty($objMod->error)) $this->errors[]=$objMod->error;
|
||||
if (! empty($objMod->errors)) $this->errors=array_merge($this->errors,$objMod->errors);
|
||||
else if (! empty($objMod->error)) $this->errors[]=$objMod->error;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user