Skip to content
Snippets Groups Projects
Commit 46d1181a authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge branch '3.5' of git@github.com:Dolibarr/dolibarr.git into 3.5

parents 295f0fd9 7e2027ec
Branches
Tags
No related merge requests found
...@@ -4,6 +4,8 @@ English Dolibarr ChangeLog ...@@ -4,6 +4,8 @@ English Dolibarr ChangeLog
***** ChangeLog for 3.5.1 compared to 3.5.0 ***** ***** 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: Bug of import of agenda when using https link
Fix: Field nature not saved correctly Fix: Field nature not saved correctly
Fix: Substituion of extra field was ko for order Fix: Substituion of extra field was ko for order
......
...@@ -107,7 +107,7 @@ if ($action == 'update') ...@@ -107,7 +107,7 @@ if ($action == 'update')
{ {
foreach($delays as $delay) foreach($delays as $delay)
{ {
if (GETPOST($delay['code'])) if (GETPOST($delay['code']) != '')
{ {
dolibarr_set_const($db, $delay['code'], GETPOST($delay['code']), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, $delay['code'], GETPOST($delay['code']), 'chaine', 0, '', $conf->entity);
} }
......
...@@ -261,8 +261,8 @@ if ($action == 'add_action') ...@@ -261,8 +261,8 @@ if ($action == 'add_action')
{ {
$db->rollback(); $db->rollback();
$langs->load("errors"); $langs->load("errors");
$error=$langs->trans($actioncomm->error); if (! empty($actioncomm->error)) setEventMessage($langs->trans($actioncomm->error), 'errors');
setEventMessage($error,'errors'); if (count($actioncomm->errors)) setEventMessage($actioncomm->errors, 'errors');
$action = 'create'; $action = 'create';
} }
} }
......
...@@ -167,8 +167,8 @@ class Interfaces ...@@ -167,8 +167,8 @@ class Interfaces
// Action KO // Action KO
$nbtotal++; $nbtotal++;
$nbko++; $nbko++;
if (! empty($objMod->error)) $this->errors[]=$objMod->error;
if (! empty($objMod->errors)) $this->errors=array_merge($this->errors,$objMod->errors); if (! empty($objMod->errors)) $this->errors=array_merge($this->errors,$objMod->errors);
else if (! empty($objMod->error)) $this->errors[]=$objMod->error;
} }
} }
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment