BUGFIX: fix regression with literal fields not showing content

This commit is contained in:
Will Rossiter 2012-05-07 18:10:57 +12:00
parent aa67b9da2f
commit 6c1b843fac

View File

@ -394,7 +394,6 @@ class UserDefinedForm_Controller extends Page_Controller {
$field->setTitle($title);
}
}
// if this field has an extra class
if($editableField->getSetting('ExtraClass')) {
$field->addExtraClass(Convert::raw2att(
@ -404,13 +403,13 @@ class UserDefinedForm_Controller extends Page_Controller {
// set the values passed by the url to the field
$request = $this->getRequest();
$value = Convert::raw2att($request->getVar($field->name));
if(isset($value)) $field->value = $value;
if($var = $request->getVar($field->name)) {
$field->value = Convert::raw2att($var);
}
$fields->push($field);
}
}
$this->extend('updateFormFields', $fields);
return $fields;