Commit 6fc4bef7 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4982 Added choices to base serialization to fix CSV import base field behavior

Showing with 19 additions and 0 deletions
+19 -0
......@@ -299,5 +299,15 @@ class baseSelector {
{
return $this->base;
}
/*!
* \brief Accessor of the bases
*
* \return Array containts the bases and their display text
*/
function getBases()
{
return $this->pathMapping;
}
}
?>
......@@ -1998,6 +1998,15 @@ class BaseSelectorAttribute extends Attribute
return '';
}
}
function serializeAttribute(&$attributes, $form = TRUE)
{
if (!$form || $this->visible) {
parent::serializeAttribute($attributes, $form);
$attributes[$this->getLdapName()]['choices'] = $this->baseSelector->getBases();
}
}
}
/*! \brief This class allow to handle easily a multi-valuated attribute
......
  • bmortier @bmortier

    mentioned in issue #1581

    By Côme Chilliet on 2017-09-02T15:31:24 (imported from GitLab)

    ·

    mentioned in issue #1581

    By Côme Chilliet on 2017-09-02T15:31:24 (imported from GitLab)

    Toggle commit list
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