Skip to content

Commit

Permalink
FIX Use full versioning for Widget and WidgetArea to preserve draft s…
Browse files Browse the repository at this point in the history
…tate between page publishes
  • Loading branch information
robbieaverill committed Dec 20, 2017
1 parent e1a0469 commit 5ca288c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _config/routes.yml
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion src/Model/Widget.php
Expand Up @@ -70,7 +70,7 @@ class Widget extends DataObject
private static $table_name = 'Widget';

private static $extensions = [
Versioned::class . '.versioned',
Versioned::class,
];

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Model/WidgetArea.php
Expand Up @@ -27,7 +27,7 @@ class WidgetArea extends DataObject
];

private static $extensions = [
Versioned::class . '.versioned',
Versioned::class,
];

private static $table_name = 'WidgetArea';
Expand Down

0 comments on commit 5ca288c

Please sign in to comment.