dblayeroo : return the value when the entry already exists

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4987 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2019-02-07 13:18:32 +00:00
parent a7923b731d
commit d5a5caf4f6

View File

@@ -2874,14 +2874,16 @@ class dblayeroo
{
foreach ($columns as $column)
{
$errors[$column] = dgettext ("domframework",
"An entry with this value already exists");
$errors[$column] = sprintf (dgettext ("domframework",
"An entry with this value '%s' already exists"),
mb_substr ($setValues[$column], 0, 15));
}
}
else
{
$errors[$columns] = dgettext ("domframework",
"An entry with this value already exists");
$errors[$columns] = sprintf (dgettext ("domframework",
"An entry with this value '%s' already exists"),
mb_substr ($setValues[$columns], 0, 15));
}
}
unset ($objTmp);