mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
FIX : Error when updating user (#29304)
* FIX : Error management * FIW : PR returns * FIX : PR returns error
This commit is contained in:
parent
3076b6ad40
commit
99e85334b5
|
|
@ -134,3 +134,4 @@ UserPublicPageDesc=You can enable a virtual card for this user. An url with the
|
|||
EnablePublicVirtualCard=Enable the user's virtual business card
|
||||
UserEnabledDisabled=User status changed: %s
|
||||
AlternativeEmailForOAuth2=Alternative Email for OAuth2 login
|
||||
ErrorUpdateCanceledDueToDuplicatedUniqueValue=Error, The update was canceled because one of the pieces of data, that should be unique, already exists
|
||||
|
|
|
|||
|
|
@ -550,7 +550,7 @@ if (empty($reshook)) {
|
|||
$error++;
|
||||
if ($db->errno() == 'DB_ERROR_RECORD_ALREADY_EXISTS') {
|
||||
$langs->load("errors");
|
||||
setEventMessages($langs->trans("ErrorLoginAlreadyExists", $object->login), null, 'errors');
|
||||
setEventMessages($langs->trans("ErrorUpdateCanceledDueToDuplicatedUniqueValue", $object->login), null, 'errors');
|
||||
} else {
|
||||
setEventMessages($object->error, $object->errors, 'errors');
|
||||
$action = 'edit';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user