Skip to content

Commit c764ef9

Browse files
authored
Merge pull request creativecommons#375 from creativecommons/fix-voucher-reminder
fix creativecommons#374 - fix voucher request reminder process
2 parents dedbc44 + 6ed34bb commit c764ef9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/cc-global-network/cron/email-vouch-request-reminders.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function ccgn_email_vouch_request_reminders () {
104104
// which is the last time their Vouchers were initially notified.
105105
$days_in_state = ccgn_days_since_state_set ( $applicant_id, $now );
106106
$date_last_set_to_state = get_user_meta(
107-
$user_id
107+
$applicant_id
108108
)[ CCGN_APPLICATION_STATE_DATE ][ 0 ];
109109
$request_date = new DateTime( $date_last_set_to_state );
110110
# php 5.2.2 or later for DateTime comparisons....

plugins/cc-global-network/includes/gravityforms-interaction.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ function ccgn_vouching_request_spoof_cannot($applicant_id, $voucher_id)
593593
'SPOOFING "CANNOT" VOUCH ENTRY: this is due to the Voucher not responding in time.'
594594
);
595595
// If applicant is vouching, they must now update vouchers
596-
ccgn_registration_user_set_stage_update_vouchers($application_id);
596+
ccgn_registration_user_set_stage_update_vouchers($applicant_id);
597597
return true;
598598
}
599599

0 commit comments

Comments
 (0)