From 0df49f1c839816f6aff7daf5a90921e37431123b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come.bernigaud@opensides.be> Date: Tue, 5 Apr 2016 06:14:30 +0200 Subject: [PATCH] Fixes #4478 Fixed errors when using some fields in csv import --- include/class_template.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/class_template.inc b/include/class_template.inc index 3802e0006..32f59cf1c 100644 --- a/include/class_template.inc +++ b/include/class_template.inc @@ -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) { -- GitLab