mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge remote branch 'origin/master' into translation-staging
This commit is contained in:
commit
6a263eb98e
@ -125,7 +125,7 @@ class FormField extends RequestHandler {
|
|||||||
*/
|
*/
|
||||||
public function __construct($name, $title = null, $value = null) {
|
public function __construct($name, $title = null, $value = null) {
|
||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
$this->title = ($title === null) ? $name : $title;
|
$this->title = ($title === null) ? self::name_to_label($name) : $title;
|
||||||
|
|
||||||
if($value !== NULL) $this->setValue($value);
|
if($value !== NULL) $this->setValue($value);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user