Skip to content
Discussion options

You must be logged in to vote

@blessen131 I think I answered you (or someone with a similar question) on stackoverflow.

I am afraid in 5.x we didn't had setAccessCondition() that would allow us to change the visibility without having to overwrite the views.

In that case you are in the right direction:

  • Create a copy of the button and customize it (call it update_trashed or something different than the original update name so it does not overwrite the original button in other Controllers).
  • You will need to modify the button that the UpdateOperation adds:
protected function setupListOperation()
{
    // ... your columns, filters etc

    CRUD::modifyButton('update', ['content' => 'crud::buttons.update_trashed']); 
    /…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by blessen131
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants