From 5239309d04eb3ae7e2299ad97849cce1a5bfad8e Mon Sep 17 00:00:00 2001 From: albert Date: Mon, 25 Mar 2013 22:15:12 -0400 Subject: [PATCH] fixes #1093 --- app/presenters/wiki_page_presenter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/presenters/wiki_page_presenter.rb b/app/presenters/wiki_page_presenter.rb index 8797c15ce..31b9d22da 100644 --- a/app/presenters/wiki_page_presenter.rb +++ b/app/presenters/wiki_page_presenter.rb @@ -14,11 +14,11 @@ class WikiPagePresenter end def consequent_tag_aliases - @consequent_tag_aliases ||= TagAlias.where("consequent_name = ?", wiki_page.title) + @consequent_tag_aliases ||= TagAlias.where("status = 'active' and consequent_name = ?", wiki_page.title).all end def antecedent_tag_alias - @antecedent_tag_alias ||= TagAlias.find_by_antecedent_name(wiki_page.title) + @antecedent_tag_alias ||= TagAlias.where("status = 'active' and antecedent_name = ?", wiki_page.title).first end # Produce a formatted page that shows the difference between two versions of a page.