Rock icon indicating copy to clipboard operation
Rock copied to clipboard

Copying a Registration Template Can Break All Registrations

Open Jon-Corey opened this issue 1 year ago • 0 comments

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

  • [X] Perform a search on the Github Issues to see if your bug or enhancement is already reported.
  • [X] Try to reproduce the problem on a fresh install or on the demo site.

Rock Version

v15.1, v16.3, v16.4

Client Culture Setting

en-US

Jon-Corey avatar Apr 04 '24 18:04 Jon-Corey