mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 17:05:54 +02:00
FIX Use full versioning for Widget and WidgetArea to preserve draft state between page publishes
This commit is contained in:
parent
e1a0469c46
commit
5ca288c9a3
@ -3,4 +3,4 @@ Name: widgetsroutes
|
|||||||
---
|
---
|
||||||
SilverStripe\Control\Director:
|
SilverStripe\Control\Director:
|
||||||
rules:
|
rules:
|
||||||
'WidgetController//$Action/$ID/$OtherID': 'SilverStripe\Widgets\Controllers\WidgetController'
|
'WidgetController//$Action/$ID/$OtherID': 'SilverStripe\Widgets\Model\WidgetController'
|
||||||
|
@ -70,7 +70,7 @@ class Widget extends DataObject
|
|||||||
private static $table_name = 'Widget';
|
private static $table_name = 'Widget';
|
||||||
|
|
||||||
private static $extensions = [
|
private static $extensions = [
|
||||||
Versioned::class . '.versioned',
|
Versioned::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,7 +27,7 @@ class WidgetArea extends DataObject
|
|||||||
];
|
];
|
||||||
|
|
||||||
private static $extensions = [
|
private static $extensions = [
|
||||||
Versioned::class . '.versioned',
|
Versioned::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
private static $table_name = 'WidgetArea';
|
private static $table_name = 'WidgetArea';
|
||||||
|
Loading…
Reference in New Issue
Block a user