Skip to content
Snippets Groups Projects
Commit 74e8fb9d authored by deepak-srivastava's avatar deepak-srivastava
Browse files

Merge pull request #1703 from pratik-joshi/CRM-13459

CRM-13459 fix : added additional filter of entity_table = 'civicrm_pcp'
parents ccd6a498 b198658c
Branches
Tags
No related merge requests found
......@@ -194,9 +194,10 @@ class CRM_PCP_Page_PCPInfo extends CRM_Core_Page {
$honor = CRM_PCP_BAO_PCP::honorRoll($this->_id);
if ($file_id = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_EntityFile', $this->_id, 'file_id', 'entity_id')) {
if ($fileInfo = reset(CRM_Core_BAO_File::getEntityFile('civicrm_pcp', $this->_id))) {
$fileId = $fileInfo['fileID'];
$image = '<img src="' . CRM_Utils_System::url('civicrm/file',
"reset=1&id=$file_id&eid={$this->_id}"
"reset=1&id=$fileId&eid={$this->_id}"
) . '" />';
$this->assign('image', $image);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment