Fix: [ bug #1471 ] Several PHP warnings when intercepting USER_CREATE
trigger
This commit is contained in:
parent
2537a9d35f
commit
ea310efba5
@ -68,6 +68,7 @@ For users:
|
|||||||
- Fix: [ bug #1478 ] BILL_PAYED trigger action does not intercept failure under some circumstances
|
- Fix: [ bug #1478 ] BILL_PAYED trigger action does not intercept failure under some circumstances
|
||||||
- Fix: [ bug #1479 ] Several customer invoice triggers do not intercept trigger action
|
- Fix: [ bug #1479 ] Several customer invoice triggers do not intercept trigger action
|
||||||
- Fix: [ bug #1477 ] Several customer invoice triggers do not show trigger error messages
|
- Fix: [ bug #1477 ] Several customer invoice triggers do not show trigger error messages
|
||||||
|
- Fix: [ bug #1471 ] Several PHP warnings when intercepting USER_CREATE trigger.
|
||||||
|
|
||||||
TODO
|
TODO
|
||||||
- New: Predefined product and free product use same form.
|
- New: Predefined product and free product use same form.
|
||||||
|
|||||||
@ -238,8 +238,8 @@ if ($action == 'add' && $canadduser)
|
|||||||
{
|
{
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
$db->rollback();
|
$db->rollback();
|
||||||
if (is_array($object->errors) && count($object->errors)) $message='<div class="error">'.join('<br>',$langs->trans($object->errors)).'</div>';
|
if (is_array($object->errors) && count($object->errors)) setEventMessage($object->errors,'errors');
|
||||||
else $message='<div class="error">'.$langs->trans($object->error).'</div>';
|
else setEventMessage($object->error);
|
||||||
$action="create"; // Go back to create page
|
$action="create"; // Go back to create page
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user