Adamw has uploaded a new change for review.
https://gerrit.wikimedia.org/r/58625
Change subject: Update datetime range hack for Civi 4.2
......................................................................
Update datetime range hack for Civi 4.2
Change-Id: I9dc892e24c3f1f3dcbc3cf38eb79f2ffb46cd7a3
---
M
sites/all/modules/wmf_reports/CRM/Report/Form/Contribute/GatewayReconciliation.php
1 file changed, 3 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm
refs/changes/25/58625/1
diff --git
a/sites/all/modules/wmf_reports/CRM/Report/Form/Contribute/GatewayReconciliation.php
b/sites/all/modules/wmf_reports/CRM/Report/Form/Contribute/GatewayReconciliation.php
index 2018176..3e69e4f 100644
---
a/sites/all/modules/wmf_reports/CRM/Report/Form/Contribute/GatewayReconciliation.php
+++
b/sites/all/modules/wmf_reports/CRM/Report/Form/Contribute/GatewayReconciliation.php
@@ -247,10 +247,9 @@
and array_key_exists( $field_name, $this->_params['group_bys']
) );
}
- // hack taken from http://issues.civicrm.org/jira/browse/CRM-9505
- function addDateRange( $name, $label = 'From:', $dateFormat =
'searchDate', $required = false ) {
- $this->addDateTime( $name . '_from', $label , $required, array(
'formatType' => $dateFormat ) );
- $this->addDateTime( $name . '_to' , ts('To:'), $required, array(
'formatType' => $dateFormat ) );
+ function addDateRange( $name, $from = '_from', $to = '_to', $label =
'From:', $dateFormat = 'searchDate', $required = false ) {
+ $this->addDateTime( $name . $from, $label , $required, array(
'formatType' => $dateFormat ) );
+ $this->addDateTime( $name . $to, ts('To:'), $required, array(
'formatType' => $dateFormat ) );
}
function selectClause( $tableName, $type, $fieldName, &$field ) {
--
To view, visit https://gerrit.wikimedia.org/r/58625
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9dc892e24c3f1f3dcbc3cf38eb79f2ffb46cd7a3
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Adamw <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits