修改了编辑参赛作品不能更新托管项目的问题

This commit is contained in:
wanglinchun 2014-05-26 19:46:49 +08:00
parent a1083fe900
commit 4afc41a171
1 changed files with 2 additions and 1 deletions

View File

@ -173,7 +173,8 @@ class SoftapplicationsController < ApplicationController
# @softapplication = Softapplication.find(params[:id])
@softapplication.attachments.map{|attach| attach.destroy }
@softapplication.save_attachments(params[:attachments])
@softapplication.deposit_project = params[:project]
#@softapplication.deposit_project = params[:project]
@softapplication.project = Project.find_by_id(params[:project])
respond_to do |format|
if @softapplication.update_attributes(params[:softapplication])
format.html { redirect_to @softapplication, notice: l(:notice_softapplication_was_successfully_updated) }