MINOR added onBeforeRender extension hook to FormField

This commit is contained in:
sheadawson 2013-11-29 11:20:30 +11:00
parent 5c1a9d9da5
commit 759cb2dd6d

View File

@ -583,7 +583,7 @@ class FormField extends RequestHandler {
*/
public function Field($properties = array()) {
$obj = ($properties) ? $this->customise($properties) : $this;
$this->extend('onBeforeRender', $this);
return $obj->renderWith($this->getTemplates());
}