You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to track down the cause of bug core#707 and why it persists even when I thought I patched it. I eventually figured out that this extension redirects AJAX calls to itself when searching the grants.
My question is: What is lost by NOT redirecting? I inserted return CRM_Financial_Page_AJAX::getFinancialTransactionsList(); to the top of CRM_Grantfinancialsupport_Util::getFinancialTransactionsList() and it worked well - but we haven't started using grant financials yet (but will be imminently).
Based on the relevant git blame, it seems like this change was made for "AO-86" and mostly handles returning a different set of links for grant batches. Could this be resolved via hook_civicrm_links instead?
The text was updated successfully, but these errors were encountered:
@MegaphoneJon, unfortunately, its not tied to links only but also depends on a CRM_Grantfinancialsupport_Util ::getBatchFinancialItems() which is responsible to fetch grant OR contribution ID if a financial trxn is tied to it. Now firstly thank you for your suggestion about using hook_civicrm_links but as I recall I didn't choose to go on that direction because then it involves firing small query inside this link_hook for each payment links which is not good in terms of performance.
But then we don't have any hook where I can extend the core SQL query that fetch payments for c a batch. I hope Pradeep's civicrm/civicrm-core#13556 got merged so I can redo my fix.
Anyways as per core#707 I understand the gravity why it is so important to remove the core override of that AJAX function reason why I have submitted a new PR #5 about calling the link hook and get rid of that override. Can you please review this PR?
Hi all,
I've been trying to track down the cause of bug core#707 and why it persists even when I thought I patched it. I eventually figured out that this extension redirects AJAX calls to itself when searching the grants.
My question is: What is lost by NOT redirecting? I inserted
return CRM_Financial_Page_AJAX::getFinancialTransactionsList();
to the top ofCRM_Grantfinancialsupport_Util::getFinancialTransactionsList()
and it worked well - but we haven't started using grant financials yet (but will be imminently).Based on the relevant git blame, it seems like this change was made for "AO-86" and mostly handles returning a different set of links for grant batches. Could this be resolved via
hook_civicrm_links
instead?The text was updated successfully, but these errors were encountered: