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
parent 80bf3499be
commit 07e895fc42
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]
end_am_pm = params[:end_am_pm]
cal_id = params[:event][:cal_id]
if params[:event][:cal_id]
cal_id = params[:event][:cal_id]
else
cal_id = Cal.first.id.to_s
# if start_am_pm == "PM"
# temp_start_time = $starttime + 12