mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
FIX Import DateTimeField class for GridField column casting
This commit is contained in:
parent
05fb6fa217
commit
07f24bbd63
@ -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