mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge branch '3.2' into 3.3
This commit is contained in:
commit
e1ccb3b379
@ -54,9 +54,7 @@ class CheckboxSetField extends OptionsetField {
|
||||
'Options' => $this->getOptions()
|
||||
));
|
||||
|
||||
return $this->customise($properties)->renderWith(
|
||||
$this->getTemplates()
|
||||
);
|
||||
return FormField::Field($properties);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -102,7 +102,7 @@ class ListboxField extends DropdownField {
|
||||
'Options' => new ArrayList($options)
|
||||
));
|
||||
|
||||
return $this->customise($properties)->renderWith($this->getTemplates());
|
||||
return FormField::Field($properties);
|
||||
}
|
||||
|
||||
public function getAttributes() {
|
||||
|
@ -83,9 +83,7 @@ class OptionsetField extends DropdownField {
|
||||
'Options' => new ArrayList($options)
|
||||
));
|
||||
|
||||
return $this->customise($properties)->renderWith(
|
||||
$this->getTemplates()
|
||||
);
|
||||
return FormField::Field($properties);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -248,7 +248,7 @@ class TreeDropdownField extends FormField {
|
||||
)
|
||||
);
|
||||
|
||||
return $this->customise($properties)->renderWith('TreeDropdownField');
|
||||
return parent::Field($properties);
|
||||
}
|
||||
|
||||
public function extraClass() {
|
||||
|
@ -135,7 +135,7 @@ class TreeMultiselectField extends TreeDropdownField {
|
||||
'Value' => $value
|
||||
)
|
||||
);
|
||||
return $this->customise($properties)->renderWith('TreeDropdownField');
|
||||
return FormField::Field($properties);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -974,11 +974,11 @@ class UploadField extends FileField {
|
||||
}
|
||||
|
||||
$mergedConfig = array_merge($config, $this->ufConfig);
|
||||
return $this->customise(array(
|
||||
return parent::Field(array(
|
||||
'configString' => str_replace('"', """, Convert::raw2json($mergedConfig)),
|
||||
'config' => new ArrayData($mergedConfig),
|
||||
'multiple' => $allowedMaxFileNumber !== 1
|
||||
))->renderWith($this->getTemplates());
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user