Commit 9f755a64 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

feat(template) Add a parameter to set values in LDAP format

issue #5903
parent 8ee684b3
......@@ -222,10 +222,13 @@ class template
/*! \brief Set values
*/
function setValues($values)
function setValues($values, $ldapFormat = FALSE)
{
foreach ($values as $class => $class_values) {
foreach ($class_values as $name => $value) {
if ($ldapFormat) {
$value = $this->tabObject->by_object[$class]->attributesAccess[$name]->inputValue($value);
}
$this->tabObject->by_object[$class]->attributesAccess[$name]->setValue($value);
}
}
......
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