mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
Merge pull request #65 from creative-commoners/pulls/4.0/fix-datetime-casting
FIX Import DateTimeField class for GridField column casting
This commit is contained in:
commit
544604d0b9
@ -14,6 +14,7 @@ use SilverStripe\Forms\FormAction;
|
||||
use SilverStripe\Forms\CompositeField;
|
||||
use SilverStripe\Forms\Tab;
|
||||
use SilverStripe\Forms\DateField;
|
||||
use SilverStripe\Forms\DateTimeField;
|
||||
use SilverStripe\Forms\DropdownField;
|
||||
use SilverStripe\Forms\GridField\GridField;
|
||||
use SilverStripe\Forms\GridField\GridFieldConfig;
|
||||
@ -359,7 +360,7 @@ class SiteTreeContentReview extends DataExtension implements PermissionProvider
|
||||
|
||||
// Cast the value to the users preferred date format
|
||||
$logColumns->setFieldCasting(array(
|
||||
"Created" => "DateTimeField->value",
|
||||
'Created' => DateTimeField::class . '->value',
|
||||
));
|
||||
|
||||
$logs = GridField::create("ROReviewNotes", "Review Notes", $this->owner->ReviewLogs(), $logConfig);
|
||||
|
Loading…
Reference in New Issue
Block a user