|
|
|
@ -300,13 +300,13 @@ 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.now[:notice] = l(:label_bidding_contest_succeed)
|
|
|
|
|
flash.now[:notice] = l(:label_release_add_contest_succeed)
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
flash.now[:error] = l(:label_bidding_fail)
|
|
|
|
|
flash.now[:error] = l(:label_add_contest_succeed_fail)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
@contesting_softapplication = @contest.contesting_softapplications
|
|
|
|
|
@contesting_softapplication = paginateHelper @contest.contesting_softapplications
|
|
|
|
|
|
|
|
|
|
respond_to do |format|
|
|
|
|
|
|
|
|
|
|