Small change for creating events when calendar is not selected
This commit is contained in:
parent
80bf3499be
commit
07e895fc42
|
@ -71,7 +71,10 @@ class Panel::Calendar::BackEnd::EventsController < OrbitBackendController
|
|||
start_am_pm = params[:start_am_pm]
|
||||
end_am_pm = params[:end_am_pm]
|
||||
|
||||
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
|
||||
|
|
Reference in New Issue