Skip to content

Commit

Permalink
fix: display the correct percentage-based progress
Browse files Browse the repository at this point in the history
This bug introduced by fix of this issue: #4020

ref #4049
  • Loading branch information
ravinderk committed Mar 25, 2019
1 parent 76928da commit 5605006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-give-donate-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ public function get_goal() {
} elseif ( 'donors' === $goal_format ) {
$this->goal = give_get_meta( $this->ID, '_give_number_of_donor_goal', true );

} elseif( 'amount' === $goal_format ) {
} elseif( in_array( $goal_format, array( 'amount', 'percentage' ) ) ) {
$this->goal = give_get_meta( $this->ID, '_give_set_goal', true );
}
}
Expand Down

0 comments on commit 5605006

Please sign in to comment.