mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix parameter generation for activating a schedule
Also: `@program` is instantiated via `load_and_authorize_resource` already...
This commit is contained in:
parent
7e5c874d5e
commit
3494b91f4d
2 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ module Admin
|
|||
|
||||
def update
|
||||
authorize! :update, @conference.program
|
||||
@program = @conference.program
|
||||
|
||||
params['program']['languages'] = params['program']['languages'].join(',') if params['program']['languages'].present?
|
||||
@program.assign_attributes(program_params)
|
||||
send_mail_on_schedule_public = @program.notify_on_schedule_public?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue