Merge branch '3.2' into 3.3

This commit is contained in:
Daniel Hensby 2016-07-11 21:10:06 +01:00
commit e1ccb3b379
No known key found for this signature in database
GPG Key ID: 229831A941962E26
6 changed files with 7 additions and 11 deletions

View File

@ -54,9 +54,7 @@ class CheckboxSetField extends OptionsetField {
'Options' => $this->getOptions() 'Options' => $this->getOptions()
)); ));
return $this->customise($properties)->renderWith( return FormField::Field($properties);
$this->getTemplates()
);
} }
/** /**

View File

@ -102,7 +102,7 @@ class ListboxField extends DropdownField {
'Options' => new ArrayList($options) 'Options' => new ArrayList($options)
)); ));
return $this->customise($properties)->renderWith($this->getTemplates()); return FormField::Field($properties);
} }
public function getAttributes() { public function getAttributes() {

View File

@ -83,9 +83,7 @@ class OptionsetField extends DropdownField {
'Options' => new ArrayList($options) 'Options' => new ArrayList($options)
)); ));
return $this->customise($properties)->renderWith( return FormField::Field($properties);
$this->getTemplates()
);
} }
/** /**

View File

@ -248,7 +248,7 @@ class TreeDropdownField extends FormField {
) )
); );
return $this->customise($properties)->renderWith('TreeDropdownField'); return parent::Field($properties);
} }
public function extraClass() { public function extraClass() {

View File

@ -135,7 +135,7 @@ class TreeMultiselectField extends TreeDropdownField {
'Value' => $value 'Value' => $value
) )
); );
return $this->customise($properties)->renderWith('TreeDropdownField'); return FormField::Field($properties);
} }
/** /**

View File

@ -974,11 +974,11 @@ class UploadField extends FileField {
} }
$mergedConfig = array_merge($config, $this->ufConfig); $mergedConfig = array_merge($config, $this->ufConfig);
return $this->customise(array( return parent::Field(array(
'configString' => str_replace('"', """, Convert::raw2json($mergedConfig)), 'configString' => str_replace('"', """, Convert::raw2json($mergedConfig)),
'config' => new ArrayData($mergedConfig), 'config' => new ArrayData($mergedConfig),
'multiple' => $allowedMaxFileNumber !== 1 'multiple' => $allowedMaxFileNumber !== 1
))->renderWith($this->getTemplates()); ));
} }
/** /**