mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix accept event workflow
This commit is contained in:
parent
1528fb53de
commit
2ca99e7ab9
4 changed files with 30 additions and 24 deletions
|
|
@ -113,12 +113,10 @@ class Admin::EventsController < ApplicationController
|
|||
flash[:notice] = "Update not successful."
|
||||
end
|
||||
|
||||
expire_page :controller => '/schedule', :action => :index
|
||||
redirect_back_or_to(admin_conference_event_path(@conference.short_title, @event))
|
||||
end
|
||||
|
||||
def create
|
||||
expire_page :controller => '/schedule', :action => :index
|
||||
end
|
||||
|
||||
def update_state
|
||||
|
|
@ -127,7 +125,6 @@ class Admin::EventsController < ApplicationController
|
|||
redirect_to(admin_conference_events_path(:conference_id => @conference.short_title), :notice => "Update Email Template before Sending Mails") and return
|
||||
end
|
||||
event.send(:"#{params[:transition]}!", :send_mail => params[:send_mail])
|
||||
expire_page :controller => '/schedule', :action => :index
|
||||
redirect_to(admin_conference_events_path(:conference_id => @conference.short_title), :notice => "Updated state")
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue