|
|
|
@ -33,6 +33,10 @@ class OrgDocumentCommentsController < ApplicationController
|
|
|
|
|
def update
|
|
|
|
|
@org_document = OrgDocumentComment.find(params[:id])
|
|
|
|
|
@org_document.update_attributes(:title => params[:org_document_comment][:title], :content => params[:org_document_comment][:content])
|
|
|
|
|
if @org_document.parent.nil?
|
|
|
|
|
act = OrgActivity.where("org_act_type='OrgDocumentComment' and org_act_id =?", @org_document.id).first
|
|
|
|
|
act.update_attributes(:updated_at => @org_document.updated_at)
|
|
|
|
|
end
|
|
|
|
|
respond_to do |format|
|
|
|
|
|
format.html {redirect_to organization_org_document_comments_path(:organization_id => @org_document.organization.id)}
|
|
|
|
|
end
|
|
|
|
|