From fffa10f99c7bc8d59561f96965623a63d5d9f94d Mon Sep 17 00:00:00 2001 From: bradymiller Date: Tue, 16 Oct 2012 10:03:10 -0700 Subject: [PATCH] Fixed Patient Portal Offsite-mailbox bug --- library/pnotes.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/pnotes.inc b/library/pnotes.inc index 19f4c2af8..99a4f7bc4 100644 --- a/library/pnotes.inc +++ b/library/pnotes.inc @@ -217,7 +217,6 @@ function getPatientNotifications($pid = '', $limit = '', $offset = 0, $search = AND lo2.list_id = 'rule_action' WHERE pid = ? AND active = 1 - AND message_status != 'Done' AND date_created > DATE_SUB(NOW(), INTERVAL 1 MONTH) $search ORDER BY `date` desc @@ -256,6 +255,7 @@ function getPatientSentNotes($pid = '', $limit = '', $offset = 0, $search = '') WHERE `user` = ? AND p.deleted != 1 AND p.pid = ? + AND p.message_status != 'Done' $search ORDER BY `date` desc $limit -- 2.11.4.GIT