Skip to content

Commit

Permalink
Merged in PG-354-check-noneligible-contributions (pull request civicr…
Browse files Browse the repository at this point in the history
…m#27)

PG-354: Check if submitted contribution has \'No\' as selected option
  • Loading branch information
guanhuan committed Jan 13, 2017
2 parents b7f13cd + 77404e6 commit 1a0604b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,8 @@ static function isContributionSubmitted($contributionID) {

$dao = CRM_Core_DAO::executeQuery( $sql, $sqlParams );

if(!count($dao->fetchAll())) {
$count = count($dao->fetchAll());
if(!$count || $dao->eligible_for_gift_aid == 0) {
return FALSE;
}
return TRUE;
Expand Down

0 comments on commit 1a0604b

Please sign in to comment.