parent
cb23b54d01
commit
63af60d7b6
|
@ -732,9 +732,9 @@ class BidsController < ApplicationController
|
||||||
def update
|
def update
|
||||||
@bid = Bid.find(params[:id])
|
@bid = Bid.find(params[:id])
|
||||||
@project = @bid.courses.first#Project.find(params[:course_id])
|
@project = @bid.courses.first#Project.find(params[:course_id])
|
||||||
if @bid.update_attributes(params[:bid])
|
@bid.save_attachments(params[:attachments] || (params[:bid] && params[:bid][:uploads]))
|
||||||
|
if @bid.update_attributes(params[:bid]) && @bid.save
|
||||||
flash[:notice] = l(:label_update_homework_succeed)
|
flash[:notice] = l(:label_update_homework_succeed)
|
||||||
#@project = Project.find(params[:course_id])
|
|
||||||
redirect_to project_homework_path(@project)
|
redirect_to project_homework_path(@project)
|
||||||
else
|
else
|
||||||
@bid.safe_attributes = params[:bid]
|
@bid.safe_attributes = params[:bid]
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 522 B |
Loading…
Reference in New Issue