From 9eff846978faa1393adcd81a45f2c71555544a3a Mon Sep 17 00:00:00 2001 From: albert Date: Fri, 8 Mar 2013 17:01:32 -0500 Subject: [PATCH] fixes #754 --- app/models/note.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/note.rb b/app/models/note.rb index befbbcfc3..c1a0d2b2d 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -37,6 +37,10 @@ class Note < ActiveRecord::Base if params[:body_matches].present? q = q.body_matches(params[:body_matches]) end + + if params[:post_id].present? + q = q.body_matches(params[:post_id]) + end if params[:post_tags_match].present? q = q.post_tags_match(params[:post_tags_match])