Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRM-18977, fixed code to invoke method in parent class #8594

Merged
merged 2 commits into from
Jul 27, 2016

Conversation

pradpnayak
Copy link
Contributor


@pradpnayak
Copy link
Contributor Author

(DO NOT MERGE - Submitted to facilitate testing)

$query->_aliases['civicrm_line_item'] = $alias;
}
elseif (!$temp) {
$query->_aliases['civicrm_line_item'] = 'civicrm_line_item_civireport';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is impact of specifying an alias for a table that is not used in a report? Are we confident that this will not cause changes to the queries for those reports?

@monishdeb
Copy link
Member

@pradpnayak please rebase this PR as it gone stale

----------------------------------------
* CRM-18977: Contribution reports fails when Financial ACL is enabled
  https://issues.civicrm.org/jira/browse/CRM-18977
----------------------------------------
* CRM-18977: Contribution reports fails when Financial ACL is enabled
  https://issues.civicrm.org/jira/browse/CRM-18977
@twomice
Copy link
Contributor

twomice commented Jul 22, 2016

Reviewing now. Jenkins retest this please.

@twomice
Copy link
Contributor

twomice commented Jul 26, 2016

I tested this by first observing the fatal error as described in the ticket. I applied the patch, and observe that the fatal error no longer appears.

The code looks sound to me. Defining an unused member of the _aliases array should not have any negative impact. It's worth noting that even before this PR, the code is capable of changing the _aliases array value for this table; the change here seems to be simply that it's providing a default value for the alias when it's blank.

This patch does affect the desired change (fixes the error), and I don't see anything problematic here. Please merge.

@JoeMurray JoeMurray merged commit 5231025 into civicrm:master Jul 27, 2016
@JoeMurray
Copy link
Contributor

Merged against master for 4.7.11. Pradeep, could you submit another PR for this against 4.7.10-rc ?

@pradpnayak
Copy link
Contributor Author

Send PR at #8778

@pradpnayak pradpnayak deleted the CRM-18977 branch August 2, 2016 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants