Skip to content

Commit

Permalink
GP-43974 Fix deprecation warning for undefined API parameter '_today'
Browse files Browse the repository at this point in the history
  • Loading branch information
mflandorfer committed Oct 10, 2024
1 parent 735ae93 commit a08abc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v3/Contract/StartDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function civicrm_api3_Contract_start_date($params) {
try {
_civicrm_api3_Contract_start_date_validate_params($params);

$today = CRM_Utils_Array::value('_today', $params);
$today = CRM_Utils_Array::value('_today', $params, 'now');
$payment_adapter = CRM_Contract_Utils::getPaymentAdapterClass($params['payment_adapter']);
$start_date = $payment_adapter::startDate($params, $today);

Expand Down

0 comments on commit a08abc0

Please sign in to comment.