Make the default state a configuration option per registration state, rather than system-wide.

(#1547190 would probably accomplish this, but this is simpler on its own.)

Comments

rattusrattus’s picture

Issue summary: View changes
StatusFileSize
new4.98 KB

Attached is a patch which:

  • Adds a default_state column in the registration_type schema
  • Adds a select list to the registration_type entity create\edit form
  • Extends registration_get_default_state() to accept a type parameter so that type specific configuration can be checked

Users can select the default state or none when creating the Registration type, when registration using this type are created this state will be used if available if not the global setting will be used.

rattusrattus’s picture

Status: Active » Needs review
rattusrattus’s picture

StatusFileSize
new5.61 KB

Updating patch to removed debug and include update hook to add the new db column

  • caxy4 committed 3f76f2e on 7.x-1.x
    Issue #2055145 by ratface, caxy4: adding ability to set default...
caxy4’s picture

Status: Needs review » Closed (fixed)

I reviewed, updated, and committed this work into 7.x-1.x so it will be in the upcoming 1.4 release.

Thanks for your work ratface!