SparkDevNetwork / Rock

An open source CMS, Relationship Management System (RMS) and Church Management System (ChMS) all rolled into one.
http://www.rockrms.com
580 stars 353 forks source link

Copying a Registration Template Can Break All Registrations #5823

Closed Jon-Corey closed 7 months ago

Jon-Corey commented 7 months ago

Description

After clicking the "Copy" button on a registration template that has a registration attribute, the Obsidian Registration Entry block will throw an error whenever someone tries to register for an event. This happens regardless of whether the copied template is saved or canceled. This error affects any attempt to use the Obsidian Registration Entry block, not just attempts to register for a specific registration instance. This error can be resolved by clearing the cache.

RegistrationTemplateDuplicationError

Actual Behavior

Starting the process of copying a registration template that has a registration attribute will cause all attempts to register for an event using the Obsidian Registration Entry block to be met with an error before the user sees any forms.

Expected Behavior

Starting the process of copying a registration template should not cause any errors for people trying to register using the Obsidian Registration Entry block.

Steps to Reproduce

  1. Create a new registration template
  2. Add a registration attribute to the newly created template
  3. Click the "Copy" button on the registration template
  4. Go to the registration page for any event (make sure the page is using the Obsidian Registration Entry block)
  5. See the null reference exception error message.

Issue Confirmation

Rock Version

v15.1, v16.3, v16.4

Client Culture Setting

en-US