Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As (creation) is translated I ran into a freaking issue where my workflow was built in a development environment which default language was french then deployed via Features on a test environment which default language was english. My workflow was completely broken and workflow UI was quite strange. I fixed the (creation) state name in the database then everything is now running.
Digging a bit in the code, I found many places where tests are made direclty on state translated name instead of its sysid. I think this should be changed to be more reliable.
For example :
$min = $state->status == t('(creation)') ? 1 : 2;
should be
$min = $state->sysid == WORKFLOW_CREATION ? 1 : 2;
Comment | File | Size | Author |
---|---|---|---|
#6 | workflow-1.0.patch | 4.94 KB | dob_ |
#1 | workflow-1475930-1.patch | 4.88 KB | Bastlynn |
Comments
Comment #1
Bastlynn CreditAttribution: Bastlynn commentedIf you'll try this patch out and let me know if it works. If so, I'll commit it to dev.
Comment #2
Bastlynn CreditAttribution: Bastlynn commentedSet to NR.
Comment #3
DuaelFrThank you for this work.
I will test it asap but I am a bit busy these times sorry.
Comment #4
rokr CreditAttribution: rokr commentedGreat! Patch applies to latest dev 2012-Apr-05
In my case i put workflows into features at a local site and applied it to a dev site. While the admin on my local site uses english language the acting user at dev uses german language. It now appears that node stay at workflow status "(creation)" which is "(Erstellung)" in german which doesn't make sense to the whole workflow.
For me this patch works.
Comment #5
lpalgarvio CreditAttribution: lpalgarvio commentednice fix =)
Comment #6
dob_ CreditAttribution: dob_ commentedAlso created a patch for the users which will only patch this bug in version 1.0.
Comment #7
mvcworks for me -- thanks!
Comment #8
rokr CreditAttribution: rokr commentedThis works again for 1.0. Thank you!
I was a little confused while i updated workflow and i hoped this patch made it into release. At least into dev branch.
cheers, rokr
Comment #9
NancyDruApplies cleanly to a Git checkout.
Comment #10
NancyDruAlso included in patch in #1884630: State update conflicts with Comment form.
Comment #11
NancyDruCommitted to 7.x-1.x-dev.