Rock
Rock copied to clipboard
Error on Group Registration block when group requirement not met
Prerequisites
- [X] Put an X between the brackets on this line if you have done all of the following:
- Did you perform a search at https://github.com/issues?q=is%3Aissue+user%3ASparkDevNetwork+-repo%3ARock to see if your bug or enhancement is already reported?
- Can you reproduce the problem on a fresh install or the demo site?
- Did you include your Rock version number and client culture setting?
A Picture Is worth a Thousand Words
Description
On the Group Registration block, when a person signs up for a group that has a Group Requirement, but they don't meet the requirement, an exception is shown instead of a friendly message telling them they don't qualify.
Steps to Reproduce
- Create a group requirement type that excludes your own gender
- Create a public group with the group requirement and make sure Required For New Members is enabled
- Go to a public web page with a group registration block on it
- Make sure you're logged in and try to register yourself for the group
- Notice the exception that is displayed at the top of the registration block
Expected behavior:
A friendly warning message should be displayed, informing the person that they don't qualify to join the group. At the very least, the current error message could be shown, but the stack trace should definitely be hidden.
Actual behavior:
An error message with a scary looking stack trace is shown instead.
Versions
- Rock Version: 12.8 & 13.6
- Client Culture Setting: en-US