diff --git a/_config.php b/_config.php index 9e519d4a..71c7914c 100644 --- a/_config.php +++ b/_config.php @@ -5,5 +5,4 @@ // Avoid creating global variables call_user_func(function () { - }); diff --git a/src/Models/Link.php b/src/Models/Link.php index 87d2de0f..809ccc23 100644 --- a/src/Models/Link.php +++ b/src/Models/Link.php @@ -16,6 +16,7 @@ use SilverStripe\ORM\DataObject; use SilverStripe\ORM\FieldType\DBHTMLText; use SilverStripe\View\Requirements; +use SilverStripe\Versioned\Versioned; /** * A Link Data Object. This class should be a subclass, and you should never directly interact with a plain Link @@ -32,6 +33,10 @@ class Link extends DataObject implements JsonData, Type 'Title' => 'Varchar', 'OpenInNew' => 'Boolean', ]; + + private static array $extensions = [ + Versioned::class + ]; /** * In-memory only property used to change link type