FIX Use full versioning for Widget and WidgetArea to preserve draft state between page publishes

This commit is contained in:
Robbie Averill 2017-12-21 10:45:55 +13:00
parent e1a0469c46
commit 5ca288c9a3
3 changed files with 3 additions and 3 deletions

View File

@ -3,4 +3,4 @@ Name: widgetsroutes
---
SilverStripe\Control\Director:
rules:
'WidgetController//$Action/$ID/$OtherID': 'SilverStripe\Widgets\Controllers\WidgetController'
'WidgetController//$Action/$ID/$OtherID': 'SilverStripe\Widgets\Model\WidgetController'

View File

@ -70,7 +70,7 @@ class Widget extends DataObject
private static $table_name = 'Widget';
private static $extensions = [
Versioned::class . '.versioned',
Versioned::class,
];
/**

View File

@ -27,7 +27,7 @@ class WidgetArea extends DataObject
];
private static $extensions = [
Versioned::class . '.versioned',
Versioned::class,
];
private static $table_name = 'WidgetArea';