Steps to reproduce:
1. Check "Change a node to next Workflow state" in VBO field configuration in a node view for nodes in workflow
2. On the view page, select a node, select "Change a node to next Workflow state" from Action dropdown, click "Apply to selected items" button
3. In the next page/form, there's no Apply button, so nothing can be done.

I believe the issue is line 112 of src/Plugin/Action/WorkflowStateActionBase.php:

$form = [];

This line needs to be deleted in order to preserve the form passed in.

CommentFileSizeAuthor
#6 test1549.png47.07 KBJimBehr
#6 test0.png50.12 KBJimBehr
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jrao created an issue. See original summary.

johnv’s picture

I cannot reproduce your error.

Case 1:
- create a view, add a node bulk form for action 'change a node to next workflow state'
- display view, select node, select action
- action is correctly axecuted without a fomr, since this s a 'simple action'. The system determines the next state and executes this.

Case 2:
- go to /admin/config/system/actions/add
- add advanced actions for 'to next state' : this form is OK
- add advanced action for 'to new state': indeed, there is no option to choose the correct state.

There is also a problem when the option 'How to show the available states' = 'Action buttons' is selected.
setting it to 'Select box' or 'radio buttons' removes the problem.

However, there is still no option to let the user choose dynamically the New state. IMO this was provided in D7. But that was provided using the contrib module VBO. In my current test installation, VBO D8 is not installed. We might create a new issue for that feature.

johnv’s picture

I have created follow-up issue #2919302: Add VBO Action where user may dynamically set the New, Given State, so this issue can concentrate on the current functionality for the New, Given State action.

johnv’s picture

And another follow-up issue is generated.

johnv’s picture

Status: Active » Postponed (maintainer needs more info)

After investigating your problem, en identifying 2 other problems, I still cannot reproduce the exact problem you describe. Please test with latest dev version , and supply some more details.

Do you need the D8 Version of VBO for your problem?

JimBehr’s picture

FileSize
50.12 KB
47.07 KB

I also encountered the issue as detailed in #1. Here’s what the screen looks like with no Apply button:
before

After commenting out the line suggested in #1 I now get an Apply button:
after

When I click the Apply button the workflow state is correctly updated.

Here’s my configuration:

  • Drupal Version 8.4.2
  • PHP Version 7.1.15
  • Views Bulk Operations Version: 8.x-2.0
  • Workflow Version: 8.x-1.0

Thanks.

ivanbueno’s picture

I'm encountering the same issue like jrao and JimBehr. I upgraded to the latest dev as of this date.

Removing line 112 of src/Plugin/Action/WorkflowStateActionBase.php fixed the issue.

  • johnv committed a8da10b on 8.x-1.x
    Issue #2906773 by JimBehr: No Apply button in VBO 'Change a node to next...
johnv’s picture

Version: 8.x-1.x-dev » 8.x-1.0
Status: Postponed (maintainer needs more info) » Fixed

Thanks, I followed the suggestion.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

johnv’s picture

Title: No Apply button in VBO "Change a node to next Workflow state" action » VBO Action 'Change a node to next Workflow state' has no Apply button