The attached patches implement the following changes:
- A new action, "Change workflow state of a node to any state", that let's a workflow transition itself to any other state.
- The Add Actions drop-down list is now categorized by type so it is much easier to read and use.
- _workflow_node_to_state now updates the $node->workflow and ->_workflow fields so any other code that uses them in the same request will see the correct value.
- _workflow_write_history attempts to make multiple log entries made during the same request show up in the correct order.
Thanks,
Barry
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | patch_153 | 6.04 KB | moshe weitzman |
| workflow-patch.txt | 6.19 KB | bjaspan |
Comments
Comment #1
bjaspan commentedThese patches were sponsored by WheresSpot, Inc., http://www.wheresspot.com.
Comment #2
moshe weitzman commentedfinally tested this (and scheduled actions module). works real well.
just some code style nits:
- make this text more generic: "Payment will only be captured if the node has at least one of the terms selected."
- always use curly braces for an if statement - even 1 liner
- indentation
Comment #3
mfredrickson commentedI've committed the change to the action listing sections.
The patch didn't cleanly apply, and I'm unsure if any changes need to be made to the body of workflow code to support the change to any state action.
Can you reroll to current 4.7-1.x-dev? Also, if you could split it into multiple patches: one for each change, or at least one for the action and one for the bug fixes, I would greatly appeciate it.
Thanks!
-Mark
Comment #4
moshe weitzman commentedbarry is presenting about this now. lets send him this reminder email that this issue needs work.
Comment #5
Bastlynn commentedHi,
This ticket was last updated over 4 years ago, and hasn't seen additional work since then. Based on that, and that development is now progressing on Drupal 7, I'm going to go ahead and close this one out. If you would still like to see this feature, please post a request for Drupal 7, then we can work on the Drupal 6 version.
- Bastlynn