section move to other page

This commit is contained in:
2023-01-20 15:40:41 +02:00
parent 8d650a82cc
commit d6dd0fd589
9 changed files with 30 additions and 31 deletions

View File

@ -65,11 +65,7 @@ module Merged
end
def update
@section.allowed_fields.each do |key|
if( params.has_key?(key) )
@section.update(key, params[key])
end
end
@section.update(params[:section])
options = params[:option]
@section.option_definitions.each do |option|
@section.set_option(option.name, options[option.name])