From 7a28a6bcd088381c71736c1ac1251eec4bb08fcd Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 20 Sep 2004 18:51:31 +0000 Subject: [PATCH] fix for problem reported by Julius Wehrmann, a single date-picker (no other widgets) does not work --- etemplate/inc/class.uietemplate.inc.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.uietemplate.inc.php b/etemplate/inc/class.uietemplate.inc.php index c33d67f6d2..a1dacce9b4 100644 --- a/etemplate/inc/class.uietemplate.inc.php +++ b/etemplate/inc/class.uietemplate.inc.php @@ -1062,10 +1062,18 @@ switch ($type) { case 'ext': - if (!$this->extensionPostProcess($sub,$form_name,$this->get_array($content,$form_name,True),$value)) + $_cont = &$this->get_array($content,$form_name,True); + if (!$this->extensionPostProcess($sub,$form_name,$_cont,$value)) { $this->unset_array($content,$form_name); } + // this else should NOT be unnecessary as $_cont is a reference to the index + // $form_name of $content, but under some circumstances a set/changed $_cont + // does not result in a change in $content -- RalfBecker 2004/09/18 + elseif ($_cont && !$this->isset_array($content,$form_name)) + { + $this->set_array($content,$form_name,$_cont); + } break; case 'htmlarea': if (isset($value))