mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Introduce an association for the selected_schedule
Association in Program fot the selected_schedule
This commit is contained in:
parent
3f114629f9
commit
beb17165a2
10 changed files with 24 additions and 21 deletions
|
|
@ -25,10 +25,10 @@ module Admin
|
|||
# if there is not selected schedule we create it
|
||||
unless @program.selected_schedule.present?
|
||||
schedule = @program.schedules.create
|
||||
@program.selected_schedule = schedule.id
|
||||
@program.selected_schedule = schedule
|
||||
@program.save!
|
||||
end
|
||||
@schedule_id = @program.selected_schedule
|
||||
@schedule_id = @program.selected_schedule.id
|
||||
end
|
||||
|
||||
def update
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue