BUG FIX: Default sort columns now quoted properly

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@98232 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Geoff Munn 2010-02-04 19:45:14 +00:00
parent 67517144d6
commit fda7836aca
4 changed files with 4 additions and 4 deletions

View File

@ -131,7 +131,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
"Stage", "Live" "Stage", "Live"
); );
static $default_sort = "Sort"; static $default_sort = "\"Sort\"";
/** /**
* If this is false, the class cannot be created in the CMS. * If this is false, the class cannot be created in the CMS.

View File

@ -10,7 +10,7 @@
*/ */
class File extends DataObject { class File extends DataObject {
static $default_sort = "Name"; static $default_sort = "\"Name\"";
static $singular_name = "File"; static $singular_name = "File";

View File

@ -20,7 +20,7 @@ class PermissionRole extends DataObject {
"Groups" => "Group", "Groups" => "Group",
); );
static $default_sort = 'Title'; static $default_sort = "\"Title\"";
function getCMSFields() { function getCMSFields() {
$fields = parent::getCMSFields(); $fields = parent::getCMSFields();

View File

@ -28,7 +28,7 @@ class Widget extends DataObject {
static $many_many = array(); static $many_many = array();
static $belongs_many_many = array(); static $belongs_many_many = array();
static $default_sort = "Sort"; static $default_sort = "\"Sort\"";
static $title = "Widget Title"; static $title = "Widget Title";
static $cmsTitle = "Name of this widget"; static $cmsTitle = "Name of this widget";