From 6da0be4dc09637d4b48fe820928f9f1f31ef5035 Mon Sep 17 00:00:00 2001 From: yashodha Date: Thu, 7 Apr 2016 11:42:26 +0530 Subject: [PATCH] CRM-18372 : dashboard notice error ---------------------------------------- * CRM-18372: dashboard notice error https://issues.civicrm.org/jira/browse/CRM-18372 --- CRM/PCP/BAO/PCP.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/PCP/BAO/PCP.php b/CRM/PCP/BAO/PCP.php index 9f3d8336a0..882631e71c 100644 --- a/CRM/PCP/BAO/PCP.php +++ b/CRM/PCP/BAO/PCP.php @@ -118,6 +118,7 @@ WHERE civicrm_pcp.contact_id = civicrm_contact.id $query = " SELECT * FROM civicrm_pcp pcp +LEFT JOIN civicrm_pcp_block block ON block.id = pcp.pcp_block_id WHERE pcp.is_active = 1 AND pcp.contact_id = %1 ORDER BY page_type, page_id"; @@ -135,6 +136,8 @@ ORDER BY page_type, page_id"; $approved = CRM_Utils_Array::key('Approved', $pcpStatus); while ($pcpInfoDao->fetch()) { +//crm_core_error::Debug($pcpInfoDao); + $mask = $hide; if ($links) { $replace = array( @@ -149,7 +152,7 @@ ORDER BY page_type, page_id"; if ($pcpInfoDao->status_id != $approved || $pcpInfoDao->is_active != 1) { $class = 'disabled'; - if (!$pcpInfoDao->tellfriend) { + if (!$pcpInfoDao->is_tellfriend_enabled) { $mask -= CRM_Core_Action::DETACH; } } -- 2.25.1