dfd
This commit is contained in:
parent
38c7216097
commit
19eb071a77
|
@ -376,10 +376,10 @@ class ContestsController < ApplicationController
|
|||
contest_message = params[:contest_for_save][:contest_message]
|
||||
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)
|
||||
flash[:notice] = l(:label_release_add_contest_succeed)
|
||||
flash.now[:notice] = l(:label_release_add_contest_succeed)
|
||||
end
|
||||
else
|
||||
flash[:error] = l(:label_add_contest_succeed_fail)
|
||||
flash.now[:error] = l(:label_add_contest_succeed_fail)
|
||||
end
|
||||
|
||||
@contesting_softapplication = paginateHelper @contest.contesting_softapplications
|
||||
|
|
Loading…
Reference in New Issue