Small change for creating events when calendar is not selected

This commit is contained in:
Harry Bomrah 2013-06-19 17:27:13 +08:00 committed by Matt K. Fu
parent 300de76c3a
commit 22358bd862
1 changed files with 4 additions and 1 deletions

View File

@ -71,7 +71,10 @@ class Panel::Calendar::BackEnd::EventsController < OrbitBackendController
start_am_pm = params[:start_am_pm] start_am_pm = params[:start_am_pm]
end_am_pm = params[:end_am_pm] end_am_pm = params[:end_am_pm]
if params[:event][:cal_id]
cal_id = params[:event][:cal_id] cal_id = params[:event][:cal_id]
else
cal_id = Cal.first.id.to_s
# if start_am_pm == "PM" # if start_am_pm == "PM"
# temp_start_time = $starttime + 12 # temp_start_time = $starttime + 12