MINOR - Allow pre filled form fields via url params

This commit is contained in:
marcokernler 2011-12-19 16:47:22 +01:00
parent 350a6fa65d
commit c575c8d981

View File

@ -405,6 +405,11 @@ class UserDefinedForm_Controller extends Page_Controller {
}
}
// set the values passed by the url to the field
$request = $this->getRequest();
$value = $request->getVar( $field->name );
if( isset( $value ) ) $field->value = $value;
$fields->push($field);
}
}