Commit 5defa898 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3249 When a duplicate is found, its dn should be given

parent c6a6fbef
......@@ -393,9 +393,13 @@ class msgPool {
*
* \param string $name The entry duplicated
*/
public static function duplicated($name)
public static function duplicated($name, $dn = NULL)
{
return sprintf(_("There is already an entry with this '%s' attribute in the system!"), $name);
if ($dn == NULL) {
return sprintf(_("There is already an entry with this '%s' attribute in the system!"), $name);
} else {
return sprintf(_("The entry '%s' already use this '%s' attribute!"), $dn, $name);
}
}
/*!
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment