Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs for https://github.com/silverstripe/silverstripe-versioned/pull/35/ #7295

Merged

Conversation

tractorcow
Copy link
Contributor

Copy link

@unclecheese unclecheese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one minor change.

$config
->getComponentByType(GridFieldDetailForm::class)
->setItemRequestClass(VersionedGridFieldItemRequest::class);
$gridField = new GridField('Items', 'Items', $this->Items(), $config);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should encourage GridField::create() here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@tractorcow tractorcow force-pushed the pulls/4.0/opt-in-gridfield-versioning branch from a3e0a49 to 6b1dfdd Compare August 23, 2017 22:46
@tractorcow tractorcow merged commit b59bd4e into silverstripe:4 Aug 23, 2017
@tractorcow tractorcow deleted the pulls/4.0/opt-in-gridfield-versioning branch August 23, 2017 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants