mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Consistently quote DataObject::$default_sort
Strictly speaking, no longer required since we auto-quote simple field names in DataQuery now, but since the majority of sorts in core is already quoted we should stay consistent.
This commit is contained in:
parent
5a8a067ae8
commit
2bc273e2a8
@ -242,7 +242,7 @@ class GridFieldDetailFormTest_Person extends DataObject implements TestOnly {
|
||||
)
|
||||
);
|
||||
|
||||
private static $default_sort = 'FirstName';
|
||||
private static $default_sort = '"FirstName"';
|
||||
|
||||
public function getCMSFields() {
|
||||
$fields = parent::getCMSFields();
|
||||
@ -266,7 +266,7 @@ class GridFieldDetailFormTest_PeopleGroup extends DataObject implements TestOnly
|
||||
'People' => 'GridFieldDetailFormTest_Person'
|
||||
);
|
||||
|
||||
private static $default_sort = 'Name';
|
||||
private static $default_sort = '"Name"';
|
||||
|
||||
public function getCMSFields() {
|
||||
$fields = parent::getCMSFields();
|
||||
@ -290,7 +290,7 @@ class GridFieldDetailFormTest_Category extends DataObject implements TestOnly {
|
||||
'People' => 'GridFieldDetailFormTest_Person'
|
||||
);
|
||||
|
||||
private static $default_sort = 'Name';
|
||||
private static $default_sort = '"Name"';
|
||||
|
||||
public function getCMSFields() {
|
||||
$fields = parent::getCMSFields();
|
||||
|
@ -1161,7 +1161,7 @@ class DataObjectTest_Team extends DataObject implements TestOnly {
|
||||
)
|
||||
);
|
||||
|
||||
private static $default_sort = "Title";
|
||||
private static $default_sort = '"Title"';
|
||||
|
||||
public function MyTitle() {
|
||||
return 'Team ' . $this->Title;
|
||||
|
Loading…
Reference in New Issue
Block a user