fixing saves

This commit is contained in:
2022-12-22 21:28:00 +02:00
parent 168320d6ee
commit 5c4123c012
9 changed files with 49 additions and 6 deletions

View File

@ -45,7 +45,7 @@ module Merged
@card.option_definitions.each do |option|
@card.set_option(option.name, options[option.name])
end if options
@card.save
@card.save(current_member)
redirect_to section_cards_url(@card.section.id) , notice: "Updated #{@card.header}"
end

View File

@ -75,7 +75,7 @@ module Merged
@section.option_definitions.each do |option|
@section.set_option(option.name, options[option.name])
end if options
@section.save
@section.save(current_member.email)
redirect_to :section , notice: "Update ok"
end