Skip to content
Snippets Groups Projects
Commit 917a9954 authored by Dave Greenberg's avatar Dave Greenberg
Browse files

Update Main.php

Fix form rule error for number of pledge installments.
parent e38a2f38
No related branches found
No related tags found
No related merge requests found
......@@ -977,7 +977,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
}
elseif (CRM_Utils_Array::value('is_pledge', $fields)) {
if (CRM_Utils_Rule::positiveInteger(CRM_Utils_Array::value('pledge_installments', $fields)) == FALSE) {
$errors['pledge_installments'] = ts('Please enter a valid pledge installment.');
$errors['pledge_installments'] = ts('Please enter a valid number of pledge installments.');
}
else {
if (CRM_Utils_Array::value('pledge_installments', $fields) == NULL) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment