Skip to content

Commit

Permalink
CIVIEWAY-263 Revert the datepicker in 'eWAYRecurring.php' from add('d…
Browse files Browse the repository at this point in the history
…atepicker') to addDateTime()
  • Loading branch information
agileware-fj committed Dec 14, 2023
1 parent edce66d commit 0214f74
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions eWAYRecurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ function ewayrecurring_civicrm_buildForm($formName, &$form) {
($crid = $form->getVar('contributionRecurID')) || ($crid = $form->getVar('_crid'));
if ($crid) {
$sql = 'SELECT next_sched_contribution_date FROM civicrm_contribution_recur WHERE id = %1';
$form->add('datepicker', 'next_scheduled_date', ts('Next Scheduled Date'), NULL, FALSE, ['formatType' => 'activityDateTime']);
// TODO Replace this with $form->add('datepicker'). Attempts to do this so far have resulted in a widget that does not open on click.
$form->addDateTime('next_scheduled_date', ts('Next Scheduled Date'), FALSE, ['formatType' => 'activityDateTime']);
if ($default_nsd = CRM_Core_DAO::singleValueQuery($sql, [
1 => [
$crid,
Expand All @@ -206,8 +207,8 @@ function ewayrecurring_civicrm_buildForm($formName, &$form) {
json_encode([
'next_scheduled_date' => $template['next_scheduled_date'],
'date_picker' => $datePicker,
]) .
");");
]) . ");"
);
}
}
}
Expand Down

0 comments on commit 0214f74

Please sign in to comment.