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()
|
'Options' => $this->getOptions()
|
||||||
));
|
));
|
||||||
|
|
||||||
return $this->customise($properties)->renderWith(
|
return FormField::Field($properties);
|
||||||
$this->getTemplates()
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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() {
|
||||||
|
@ -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()
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -248,7 +248,7 @@ class TreeDropdownField extends FormField {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
return $this->customise($properties)->renderWith('TreeDropdownField');
|
return parent::Field($properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function extraClass() {
|
public function extraClass() {
|
||||||
|
@ -135,7 +135,7 @@ class TreeMultiselectField extends TreeDropdownField {
|
|||||||
'Value' => $value
|
'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);
|
$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());
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user