Skip to content

Commit

Permalink
Adjust sektion signup for core changes
Browse files Browse the repository at this point in the history
see hitobito/hitobito#95aa280
  • Loading branch information
amaierhofer committed Jan 10, 2025
1 parent a7c7c2c commit 093ea01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/wizards/signup/sektion_wizard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ def save!
valid? && operations.all?(&:save!)
end

def valid?
super && operations_valid?
end

def birthdays
read_birthdays
end
Expand All @@ -55,6 +51,10 @@ def fees_for(beitragskategorie)

private

# As we might save multiple people we delegate validation to operations
# person itself can be invalid as operation handles aspects (e.g role start_on and gender I18nEnum::NIL_KEY)
def person_valid? = operations_valid?

def beitragskategorie
value = if birthdays.none?
:unknown
Expand Down

0 comments on commit 093ea01

Please sign in to comment.