修复作业的创建者会随着更新变动

This commit is contained in:
sw 2014-12-02 17:22:46 +08:00
parent f934824175
commit 634f707425
1 changed files with 1 additions and 1 deletions

View File

@ -868,7 +868,7 @@ class BidsController < ApplicationController
@bid.reward_type = 3
@bid.deadline = params[:bid][:deadline]
@bid.budget = 0
@bid.author_id = User.current.id
#@bid.author_id = User.current.id
@bid.commit = 0
@bid.homework_type = 1
@bid.save_attachments(params[:attachments] || (params[:bid] && params[:bid][:uploads]))