registration.module does not specify the auto-incrementing registration state IDs, so they could change, depending on the auto increment offset and increment.

CommentFileSizeAuthor
#4 1883704.diff918 bytesdrumm

Comments

drumm’s picture

Issue tags: +portland2013

tag

drumm’s picture

Issue tags: -portland2013 +prague2013

Updating our tags. This won't help out our already-installed sites, but should be fixed in the future.

tauno’s picture

The latest dev version of registration switches to using machine names for states. Should be less fragile.

drumm’s picture

Assigned: Unassigned » drumm
Status: Active » Needs review
StatusFileSize
new918 bytes

Yep, attached is a patch to use the machine names. I tested by reverting the rules in the UI.

jpontani’s picture

Status: Needs review » Fixed

Committed to dev. Only issue (currently) is that the user can eventually delete the registration states for Pending/Completed, and it would break the rule. I will put that in a new issue for later, though.

http://drupalcode.org/project/commerce_registration.git/commitdiff/ba5b814

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