Small change for creating events when calendar is not selected
This commit is contained in:
parent
300de76c3a
commit
22358bd862
|
@ -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
|
||||
|
|
Reference in New Issue