Status "0" in custom workflow

Hey guys,

Still working on the ECN system (which I will send a pull request for when it’s finished) And I’m hitting a snag with the workflows

These are my workflow states:

These are my workflow transitions:

However, when using the workflow, it won’t let me save the new ECN, although it gives it a number

And it doesn’t show up in the ECN list, but notice the Workflow State as ‘0’

If I disable the workflow, all of the ECNs show up as drafts… not sure where I’m going wrong with this.

@cpurbaugh there might be something in your JS console when you hit save. Can you share that

unreachable code after return statement desk.min.js:73:12432
unreachable code after return statement desk.min.js:8004:187
localStorage cleared desk.min.js:7181:1
Cleared App Cache. desk.min.js:7178:237
localStorage cleared desk.min.js:7181:1
unreachable code after return statement desk.min.js:73:12432
TypeError: locals['Workflow State'][value] is undefined list.min.js:22:382
unreachable code after return statement desk.min.js:73:12432
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/ jquery.min.js:4:0
Warning: Single quotes (') may not work in templates desk.min.js:7331:752
unreachable code after return statement

Aparently one of the states is illegal. Did you change, rename the states after you made the workflow?

I did change some things, yes. But since then I deleted the old workflow, states, and actions, and remade them. I’m still getting the same error.

I fixed this by creating a new doctype.