Commit 590e2aba authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '5903-ease-template-fields-filling-from-ldap-values' into '1.4-dev'

Resolve "Ease template fields filling from LDAP values"

See merge request fusiondirectory/fd!418
Showing with 4 additions and 1 deletion
+4 -1
......@@ -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