diff --git a/app/controllers/sub_document_comments_controller.rb b/app/controllers/sub_document_comments_controller.rb index 9bd0db8de..55a98e5b0 100644 --- a/app/controllers/sub_document_comments_controller.rb +++ b/app/controllers/sub_document_comments_controller.rb @@ -1,5 +1,5 @@ class SubDocumentCommentsController < ApplicationController - before_filter :find_subdomain_and_subfield, :only => [:new, :create, :show, :index, :destroy] + before_filter :find_subdomain_and_subfield, :only => [:new, :create, :show, :index, :destroy, :edit] before_filter :find_subfield_content, :only => [:show, :index] helper :attachments,:organizations layout 'base_sub_domain' @@ -90,9 +90,8 @@ class SubDocumentCommentsController < ApplicationController end def edit - @org_document = SubDocumentComment.find(params[:id]) + @sub_document = SubDocumentComment.find(params[:id]) @flag = params[:flag] - @organization = Organization.find(params[:organization_id]) end def add_reply diff --git a/app/views/sub_document_comments/_show_sub_document.html.erb b/app/views/sub_document_comments/_show_sub_document.html.erb index 1da06b510..0027417ab 100644 --- a/app/views/sub_document_comments/_show_sub_document.html.erb +++ b/app/views/sub_document_comments/_show_sub_document.html.erb @@ -9,12 +9,12 @@ <%= link_to User.find(document.creator_id), user_url_in_org(document.creator.id), :class => "newsBlue mr15" %> TO <%= link_to @organization.name, organization_path(@organization), :class => "newsBlue" %> | - <%=link_to document.sub_domain.name, org_subfield_sub_domain_sub_document_comment_path(document, :org_subfield_id=> @org_subfield.id, :sub_domain_id => document.sub_domain.id), :class => "newsBlue" %> + <%= document.sub_domain.name %> <%# if document.organization.home_id == document.id %> <%# end %> -
+