fix for problem reported by Julius Wehrmann, a single date-picker (no other widgets) does not work

This commit is contained in:
Ralf Becker 2004-09-20 18:51:31 +00:00
parent e08004b4bc
commit 7a28a6bcd0

View File

@ -1062,10 +1062,18 @@
switch ($type) switch ($type)
{ {
case 'ext': 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->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; break;
case 'htmlarea': case 'htmlarea':
if (isset($value)) if (isset($value))