Commit 0df49f1c authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4478 Fixed errors when using some fields in csv import

parent eb278520
......@@ -64,7 +64,8 @@ class template
/* Used when you need to re-apply the same template with different values */
function reset()
list($this->attrs, ) = plugin::tpl_fetch_template($this->dn);
list($this->attrs, $depends) = plugin::tpl_fetch_template($this->dn);
$this->needed = plugin::tpl_needed_attrs($this->attrs, $depends); // This is needed because it removes %askme% values from attrs
$this->tabObject = objects::create($this->type);
$tempTabObject = objects::open($this->dn, $this->type); /* Used to know which tab is activated */
foreach ($tempTabObject->by_object as $class => &$plugin) {
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