Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obsidian Registration Entry does not save registrant fields with same key #5472

Closed
1 task done
azturner opened this issue Jun 9, 2023 · 1 comment
Closed
1 task done
Labels
Fixed in v15.2 Fixed in v16.0 Topic: Event Registration Related to Rock Event Registration. Type: Bug Confirmed bugs or reports that are very likely to be bugs.

Comments

@azturner
Copy link
Contributor

azturner commented Jun 9, 2023

Please go through all the tasks below

  • Check this box only after you have successfully completed both the above tasks

Please provide a brief description of the problem. Please do not forget to attach the relevant screenshots from your side.

Registration Templates will allow you to save multiple registrant fields with same attribute key (first prolem). If you do this without realizing it, the obsidian registration block will then overwrite the first field's values with whatever is entered into the second field and not save a value in the second field.

In this example, both the "Test Field 1" and "Test Field 2" fields have a key of "TestField":
image

When using the obsidian block, and entering a different value in each field:
image

The first field's value is overwritten with second field's value and a value is not saved in the second field:
image

When viewing the details though, it shows second field's value for each field (even though a value is not stored in DB for second field):
image

Expected Behavior

First: would expect that when editing/saving a registration template that it does not allow you to use same key on multiple form fields.

Second: registration entry block should save the values correctly even if fields have same key. (The legacy registration entry block does this).

Actual Behavior

Template allows saving multiple fields with same key, and then the obsidian entry block does not save values correctly.

Steps to Reproduce

Create registration template with multiple fields that have same key
Add registration instance for the template
Use obsidian registration entry block to register someone for that instance and enter different values in the fields with same key.

Rock Version

v14.2, v15.0

Client Culture Setting

en-US

@ethan-sparkdevnetwork
Copy link
Contributor

The fix will prevent entering in duplicate keys.

@ethan-sparkdevnetwork ethan-sparkdevnetwork added Type: Bug Confirmed bugs or reports that are very likely to be bugs. Topic: Event Registration Related to Rock Event Registration. labels Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed in v15.2 Fixed in v16.0 Topic: Event Registration Related to Rock Event Registration. Type: Bug Confirmed bugs or reports that are very likely to be bugs.
Projects
None yet
Development

No branches or pull requests

3 participants