Mwalker has submitted this change and it was merged.

Change subject: fix a warning about unused 'cancel' param
......................................................................


fix a warning about unused 'cancel' param

Change-Id: Ic19824d2e10990518d7554fbbc82bc8cc55ce01d
---
M sites/all/modules/wmf_civicrm/recurring.inc
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Mwalker: Looks good to me, approved



diff --git a/sites/all/modules/wmf_civicrm/recurring.inc 
b/sites/all/modules/wmf_civicrm/recurring.inc
index e4ffa0f..736515f 100644
--- a/sites/all/modules/wmf_civicrm/recurring.inc
+++ b/sites/all/modules/wmf_civicrm/recurring.inc
@@ -16,6 +16,7 @@
     $msg[ 'frequency_unit' ] = isset( $msg[ 'frequency_unit' ] ) ? $msg[ 
'frequency_unit' ] : 'month';
     $msg[ 'frequency_interval' ] = isset( $msg[ 'frequency_interval' ] ) ? 
(integer) $msg[ 'frequency_interval' ] : 1;
     $msg[ 'installments' ] = isset( $msg[ 'installments' ] ) ? (integer) $msg[ 
'installments' ] : 0;
+    $msg['cancel'] = isset( $msg[ 'cancel' ] ) ? (integer) $msg[ 'cancel' ] : 
0;
 
     if ( !isset( $msg[ 'recurring' ] ) && $msg[ 'recurring' ] != 1 ) {
         $error_message = t(
@@ -88,7 +89,7 @@
         'installments' => $msg[ 'installments' ],
         'start_date' => wmf_common_date_unix_to_civicrm( $msg[ 'date' ] ),
         'create_date' => wmf_common_date_unix_to_civicrm( $msg[ 'date' ] ),
-        'cancel_date' => ($msg['cancel'] ? wmf_common_date_unix_to_civicrm( 
time() ) : null ),
+        'cancel_date' => ($msg['cancel'] ? wmf_common_date_unix_to_civicrm( 
$msg['cancel'] ) : null ),
         #FIXME:
         'processor_id' => 1,
         'cycle_day' => $msg[ 'cycle_day' ],

-- 
To view, visit https://gerrit.wikimedia.org/r/137351
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic19824d2e10990518d7554fbbc82bc8cc55ce01d
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Awight <awi...@wikimedia.org>
Gerrit-Reviewer: Awight <awi...@wikimedia.org>
Gerrit-Reviewer: Mwalker <mwal...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to