Skip to content

Commit

Permalink
CRM-16189, highlight form field but show error in pop up
Browse files Browse the repository at this point in the history
----------------------------------------
* CRM-16189: Improve support for Accrual Method bookkeeping
  https://issues.civicrm.org/jira/browse/CRM-16189
  • Loading branch information
pradpnayak committed Jun 21, 2016
1 parent 110abe9 commit 7261e5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Contribute/Form/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,8 @@ public static function formRule($fields, $files, $self) {
// CRM-16189
$errorMessage = CRM_Financial_BAO_FinancialAccount::checkForValidFinancialType($fields, $self->_id, $self);
if ($errorMessage) {
$errors['financial_type_id'] = $errorMessage;
$errors['financial_type_id'] = ' ';
$errors['_qf_default'] = $errorMessage;
}
$errors = array_merge($errors, $softErrors);
return $errors;
Expand Down

0 comments on commit 7261e5a

Please sign in to comment.