WPP-Public/akqa-nz-silverstripe-versioneddataobjects

VersionedModelAdmin not working in v2

Closed this issue · 2 comments

Using the latest version of your module, I attempted to add data-object versioning to a model-admin page following the Slice/SliceAdmin example in the README. When I changed extends ModelAdmin to extends VersionedModelAdmin in my model-admin class, the page became inaccessible in the CMS. I rolled back the module to v1.4, and I was able to access the page again (with versioning), which makes me suspect that something in a recent release broke it.

It appears that this was just a namespacing issue. Could you make the following update to the documentation?
class SliceAdmin extends VersionedModelAdmin
becomes
class SliceAdmin extends Heyday\VersionedDataObjects\VersionedModelAdmin

Hi bigSiebs, thanks for pointing that out and letting us know. We have now updated the README.md with that missing namespace. See release 2.0.5 - cheers.