Skip to content

Commit

Permalink
CIWEMB-452: Fix editing payment scheme recurring contributions
Browse files Browse the repository at this point in the history
  • Loading branch information
omarabuhussein committed Aug 9, 2023
1 parent ca03279 commit 30fddff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CRM/MembershipExtras/Hook/ValidateForm/UpdateSubscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public function __construct($form, &$fields, &$errors) {
* Validates the subscription form submission
*/
public function validate() {
if (empty($this->recurringContribution['frequency_unit'])) {
return;
}

$this->validateCycleDay();
$this->validateNextContributionDate();
}
Expand Down

0 comments on commit 30fddff

Please sign in to comment.