Hi,

I have found one issue that, when I update a workflow_transition form in workflow tab with scheduling. hook_entity_update() is not getting call. When I check the code, I have found that entity update is not getting trigger for scheduled transitions and I have created patch for that. Please review.

Comments

saranya ashokkumar’s picture

Status: Active » Needs review
StatusFileSize
new822 bytes
johnv’s picture

Status: Needs review » Postponed (maintainer needs more info)
Related issues: +#2928792: Route "entity.workflow_scheduled_transition.canonical" error with 'Schedule for state change"

This is an error in version RC1, but should already be repaired in version RC2 or 1.0
Which version are you using? See #2928792: Route "entity.workflow_scheduled_transition.canonical" error with 'Schedule for state change"

saranya ashokkumar’s picture

@johnv,

I am using workflow version of 8.x-1.0. But I am having problem.

Steps to Replicate:

In workflow tab, when I update the workflow transition without scheduling. My hook_entity_update is getting call.
If I am updating workflow transition with scheduling, hook_entity_update is not getting call.

Thanks!

johnv’s picture

That is correctbehaviour. When scheduling, the entity is not changed. You Will find a hook_entity_insert for the Transition. Onlybwhen you run con, the entity is changed. (the field value changed)

johnv’s picture

Priority: Minor » Normal
Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

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