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

Hyphens in names of members are deleted #1161

Open
stickyPiston opened this issue Feb 6, 2025 · 0 comments
Open

Hyphens in names of members are deleted #1161

stickyPiston opened this issue Feb 6, 2025 · 0 comments
Labels

Comments

@stickyPiston
Copy link
Member

Some people have a hyphen (-) in their name, but when signing up or changing the name in the members admin view, the hyphen is removed. The issue lies in the call to titleize in the following code.

# An attribute can be changed on setting, for example the names are starting with a cap
def first_name=(first_name)
write_attribute(:first_name, first_name.downcase.titleize)
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant