修改新建需求时的校验问题

This commit is contained in:
baiyu 2013-08-20 17:34:33 +08:00
parent 7e44294dd1
commit a14460cef9
3 changed files with 6 additions and 2 deletions

View File

@ -229,8 +229,10 @@ class BidsController < ApplicationController
@bid.commit = 0
if @bid.save
redirect_to respond_path(@bid)
else
@bid.safe_attributes = params[:bid]
render :action => 'new_bid'
end
render :action => 'new_bid'
end
def more

View File

@ -1293,3 +1293,4 @@ en:
label_issue_query_condition: Query condition
label_issue_query: Query
label_issue_cancel_query: Cancel query
field_reward_type: The type of reward

View File

@ -1313,4 +1313,5 @@ zh:
button_project_tags_add: 增加
label_issue_query_condition: 查询条件
label_issue_query: 查询
label_issue_cancel_query: 取消查询
label_issue_cancel_query: 取消查询
field_reward_type: 奖励类型