|
|
@ -531,10 +531,6 @@ class ProjectsController < ApplicationController
|
|
|
|
@course.endup_time = params[:endup_time]
|
|
|
|
@course.endup_time = params[:endup_time]
|
|
|
|
@course.class_period = params[:class_period]
|
|
|
|
@course.class_period = params[:class_period]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
# end
|
|
|
|
|
|
|
|
# @course.save
|
|
|
|
|
|
|
|
# project = ProjectInfo.create(:user_id => User.current.id, :project_id => @project.id)
|
|
|
|
|
|
|
|
# project_status = ProjectStatus.create(:project_id => @project.id)
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
@issue_custom_fields = IssueCustomField.sorted.all
|
|
|
|
@issue_custom_fields = IssueCustomField.sorted.all
|
|
|
|
@trackers = Tracker.sorted.all
|
|
|
|
@trackers = Tracker.sorted.all
|
|
|
@ -578,7 +574,7 @@ class ProjectsController < ApplicationController
|
|
|
|
format.api { render :action => 'show', :status => :created, :location => url_for(:controller => 'projects', :action => 'show', :id => @project.id) }
|
|
|
|
format.api { render :action => 'show', :status => :created, :location => url_for(:controller => 'projects', :action => 'show', :id => @project.id) }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
else
|
|
|
|
else
|
|
|
|
@course.destroy #TODO: yan
|
|
|
|
@course.destroy
|
|
|
|
respond_to do |format|
|
|
|
|
respond_to do |format|
|
|
|
|
format.html { render :action => 'new', :layout => 'base'}#Added by young
|
|
|
|
format.html { render :action => 'new', :layout => 'base'}#Added by young
|
|
|
|
format.api { render_validation_errors(@project) }
|
|
|
|
format.api { render_validation_errors(@project) }
|
|
|
|