Merge pull request #22665 from atm-maxime/fix_dict_error_data_toolong
Fix : dict data too long error
This commit is contained in:
commit
d021c0b2a1
@ -842,7 +842,7 @@ if (GETPOST('actionadd') || GETPOST('actionmodify'))
|
|||||||
if ($db->errno() == 'DB_ERROR_RECORD_ALREADY_EXISTS') {
|
if ($db->errno() == 'DB_ERROR_RECORD_ALREADY_EXISTS') {
|
||||||
setEventMessages($langs->transnoentities("ErrorRecordAlreadyExists"), null, 'errors');
|
setEventMessages($langs->transnoentities("ErrorRecordAlreadyExists"), null, 'errors');
|
||||||
} else {
|
} else {
|
||||||
dol_print_error($db);
|
setEventMessages($db->error(), null, 'errors');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user