This commit is contained in:
wanglinchun 2014-05-10 10:37:25 +08:00
parent 38c7216097
commit 19eb071a77
1 changed files with 2 additions and 2 deletions

View File

@ -376,10 +376,10 @@ class ContestsController < ApplicationController
contest_message = params[:contest_for_save][:contest_message] contest_message = params[:contest_for_save][:contest_message]
if ContestingSoftapplication.where("softapplication_id = ? and contest_id = ?", softapplication.id, @contest.id).size == 0 if ContestingSoftapplication.where("softapplication_id = ? and contest_id = ?", softapplication.id, @contest.id).size == 0
if ContestingSoftapplication.create_softapplication_contesting(@contest.id, softapplication.id, contest_message) if ContestingSoftapplication.create_softapplication_contesting(@contest.id, softapplication.id, contest_message)
flash[:notice] = l(:label_release_add_contest_succeed) flash.now[:notice] = l(:label_release_add_contest_succeed)
end end
else else
flash[:error] = l(:label_add_contest_succeed_fail) flash.now[:error] = l(:label_add_contest_succeed_fail)
end end
@contesting_softapplication = paginateHelper @contest.contesting_softapplications @contesting_softapplication = paginateHelper @contest.contesting_softapplications