Closed (fixed)
Project:
Workflow
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2012 at 02:56 UTC
Updated:
31 Jan 2013 at 16:40 UTC
Jump to comment: Most recent file
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 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 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
rokrGreat! 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 commentednice fix =)
Comment #6
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
rokrThis 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.