🇫🇷France Uroki
Hello,
I quickly modified the patch to work with the 3.2.X branch. The validation.constraint service is call staticaly in it.
If a got the time i will make a proper Merge Request.
🐛 | Drupal core | Error with workflow in preview: InvalidArgumentException: the state '' does not exist in workflow. in Drupal\workflows\Plugin\WorkflowTypeBase->getState()
🇫🇷France Uroki
Hi @samit.310@gmail.com,
I work on Drupal 10.3.0 now and i didn't tested it in 11.x.
To reproduce you must have a workflow set, with the workflows core module who contain a "draft" status.
After that, save a new node in draft status, preview-it and change the status from draft to "published" on preview mode.
Simplier steps:
- Save a new node in draft
- You are redirected on the preview mode
- On the preview mode use the workflow selector to pass it on published
- Click on apply button
- wsod
🐛 | Drupal core | Error with workflow in preview: InvalidArgumentException: the state '' does not exist in workflow. in Drupal\workflows\Plugin\WorkflowTypeBase->getState()
🇫🇷France Uroki
Ok, thank you for the correction.