|
|
@ -181,7 +181,7 @@ class CoursesController < ApplicationController
|
|
|
|
extra_params = Hash.new
|
|
|
|
extra_params = Hash.new
|
|
|
|
extra_params[:school_id] = @school.id
|
|
|
|
extra_params[:school_id] = @school.id
|
|
|
|
|
|
|
|
|
|
|
|
if @course.is_end && (course_params[:end_date].blank? || course_params[:end_date].to_date > Date.today)
|
|
|
|
if @course.is_end && (course_params[:end_date].blank? || course_params[:end_date].to_date >= Date.today)
|
|
|
|
extra_params[:is_end] = 0
|
|
|
|
extra_params[:is_end] = 0
|
|
|
|
elsif !@course.is_end && !course_params[:end_date].blank? && course_params[:end_date].to_date < Date.today
|
|
|
|
elsif !@course.is_end && !course_params[:end_date].blank? && course_params[:end_date].to_date < Date.today
|
|
|
|
extra_params[:is_end] = 1
|
|
|
|
extra_params[:is_end] = 1
|
|
|
|