app/controllers/ad_controller.rb in kit_cms-2.3.20 vs app/controllers/ad_controller.rb in kit_cms-2.3.22
- old
+ new
@@ -7,9 +7,11 @@
@ad.duration = params[:ad][:duration].to_i
zone = AdZone.find_sys_id(_sid, params[:zones].first)
@ad.height = zone.height
@ad.width = zone.width
@ad.system_id = _sid
+ @ad.name = params[:ad][:name]
+ @ad.start_date = params[:ad][:start_date]
@ad.user_id = current_user.id
@ad.end_date = @ad.start_date + @ad.duration.send(zone.period.downcase) rescue nil
@ad.activated = nil
if @ad.save
price = 0