Closed (fixed)
Project:
State Machine
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jun 2022 at 09:51 UTC
Updated:
29 Mar 2024 at 06:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
aerzas commentedA patch proposal.
Comment #4
aerzas commentedComment #5
johnpitcairn commentedCode looks good to me, and this is very useful in commerce admin views with a state transition form per row. Marking RTBC for maintainer attention.
This will change behaviour though, and some sites may be relying on going to the entity view page after transition page, so I wonder if it needs to be an opt-in or opt-out with a setting somewhere? Perhaps a 3rd-party setting per entity type would be appropriate.
Comment #6
nikita_ttThanks for the patch. It works well.
Comment #7
jsacksick commentedThere's a destination service, let's use it instead of the current path.
Comment #8
aerzas commented@jsacksick Good point !
I rebased the branch on the latest 8.x-1.x branch, updated the code with the destination service and fixed the functional test (which seemed unrelated).
Comment #9
aerzas commentedComment #11
jsacksick commentedMerged, thanks!