icecaster/silverstripe-versioned-gridfield

functional on 3.1 ??

Closed this issue · 5 comments

i am trying to get it run on SS 3.1 by

  1. creating a folder within versioned named _config
  2. included a new file extensions.yml
  3. added following lines in extensions.yml
    ModelAdmin:
    extensions:
    ['VersionedModelAdmin']

no success

I'm in the same boat, but I tried extending through mysite/_config.php

Object::add_extension("ModelAdmin", "VersionedModelAdmin");

Any chance you've worked with it in 3.1 yet?

no, havent used it in ss 3.1 yet
but have a project coming up soon that will require it.

Will keep ya posted!

For 3.1 need to add allowed_actions from GridFieldDetailForm_ItemRequest to the VersionedGridFieldDetailForm_ItemRequest as they are now private.

So add

private static $allowed_actions = array(
'edit',
'view',
'ItemEditForm'
);

at top of VersionedGridFieldDetailForm_ItemRequest class.

Will set this up as a separate branch.

Thanks!

Hi there,

I've just pushed the fixed version for 3.1 into the master branch.

Cheers