Skip to content

Commit

Permalink
Merge pull request #26132 from eileenmcnaughton/report_notice
Browse files Browse the repository at this point in the history
Contribution reports, specify type for is pledge payment
  • Loading branch information
yashodha committed May 1, 2023
2 parents f0b6536 + e06a84c commit 215653d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CRM/Report/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,8 @@ public function preProcessCommon() {
}

$this->assign('criteriaForm', FALSE);
// Will be overwritten in postProcess if TRUE.
$this->assign('printOnly', FALSE);
// Display Report Criteria section if user has access Report Criteria OR administer Reports AND report instance is not reserved
if (CRM_Core_Permission::check('administer Reports') ||
CRM_Core_Permission::check('access Report Criteria')
Expand Down
1 change: 1 addition & 0 deletions CRM/Report/Form/Contribute/Detail.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ public function __construct() {
'filters' => [
'contribution_id' => [
'title' => ts('Contribution is a pledge payment'),
'type' => CRM_Utils_Type::T_BOOLEAN,
],
],
],
Expand Down
1 change: 1 addition & 0 deletions CRM/Report/Form/Contribute/Summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ public function __construct() {
'filters' => [
'contribution_id' => [
'title' => ts('Contribution is a pledge payment'),
'type' => CRM_Utils_Type::T_BOOLEAN,
],
],
],
Expand Down
4 changes: 2 additions & 2 deletions templates/CRM/Report/Form/Layout/Table.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
{assign var=fieldHover value=$field|cat:"_hover"}
{assign var=fieldClass value=$field|cat:"_class"}
<td class="crm-report-{$field}{if $header.type eq 1024 OR $header.type eq 1 OR $header.type eq 512} report-contents-right{elseif $row.$field eq 'Subtotal'} report-label{/if}">
{if !empty($row.$fieldLink)}
{if array_key_exists($fieldLink, $row) && $row.$fieldLink}
<a title="{$row.$fieldHover|escape}" href="{$row.$fieldLink}" {if array_key_exists($fieldClass, $row)} class="{$row.$fieldClass}"{/if}>
{/if}

Expand Down Expand Up @@ -130,7 +130,7 @@
{$row.$field}
{/if}

{if !empty($row.$fieldLink)}</a>{/if}
{if array_key_exists($fieldLink, $row) && $row.$fieldLink}</a>{/if}
</td>
{/foreach}
</tr>
Expand Down

0 comments on commit 215653d

Please sign in to comment.