mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Bugfix for Conference Controller update
This commit is contained in:
parent
c890aea68d
commit
0661b86b1c
1 changed files with 6 additions and 3 deletions
|
|
@ -24,9 +24,12 @@ class Admin::ConferenceController < ApplicationController
|
|||
|
||||
def update
|
||||
@conference = Conference.find_by(short_title: params[:id])
|
||||
@conference.update_attributes(params[:conference])
|
||||
flash[:notice] = "Updated Conference"
|
||||
redirect_to(admin_conference_path(:id => @conference.short_title), :notice => 'Conference was successfully updated.')
|
||||
short_title = @conference.short_title
|
||||
if @conference.update_attributes(params[:conference])
|
||||
redirect_to(admin_conference_path(id: @conference.short_title), notice: 'Conference was successfully updated.')
|
||||
else
|
||||
redirect_to(admin_conference_path(id: short_title), notice: 'Conference update failed.')
|
||||
end
|
||||
end
|
||||
|
||||
def show
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue