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

Cannot remove actions of versiond data object detail form #178

Open
Valandur opened this issue Jul 2, 2018 · 0 comments
Open

Cannot remove actions of versiond data object detail form #178

Valandur opened this issue Jul 2, 2018 · 0 comments

Comments

@Valandur
Copy link

Valandur commented Jul 2, 2018

In a normal data object one can have a function such as:

public function getBetterButtonsActions() {
	return FieldList::create();
}

to clear all action buttons in the grid field detail form.

When using the same code for a versioned data object the default buttons "save", "publish", etc. remain, meaning one can only add new buttons, not remove existing ones.

This seems to be due to the difference in Controllers\ItemRequest.php where this code overwrites the buttons, whereas in Controllers\VersionedItemRequest this code only causes the buttons to be appended.

Why is there the difference in this behavior? And is there any way to change this and/or remove buttons from the gridfield detail form of versioned objects?

@Valandur Valandur changed the title Cannot override actions of versiond data object detail form Cannot overwrite actions of versiond data object detail form Jul 2, 2018
@Valandur Valandur changed the title Cannot overwrite actions of versiond data object detail form Cannot remove actions of versiond data object detail form Jul 2, 2018
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

No branches or pull requests

1 participant