组织文章编辑,返回对应界面

This commit is contained in:
ouyangxuhua 2015-11-27 15:25:49 +08:00
parent 25b66b5dbb
commit 3abc3f7af0
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class OrgDocumentCommentsController < ApplicationController
end
respond_to do |format|
format.html {
if params[:flag] == 0
if params[:flag].to_i == 0
redirect_to organization_org_document_comments_path(:organization_id => @org_document.organization.id)
else
redirect_to org_document_comment_path(@org_document.root.id, :organization_id => @org_document.organization.id)