Skip to content

Commit

Permalink
Merge pull request #3309 from WordImpress/revert-3305-issue/3304
Browse files Browse the repository at this point in the history
Revert "fix(donation): prevent donation amount from updating multiple times #3304"
  • Loading branch information
ravinderk committed Jun 1, 2018
2 parents 7d0eb03 + c4ab689 commit 6167dd0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions includes/payments/class-give-payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -954,10 +954,6 @@ public function save() {
wp_update_post( $args );
break;

case 'total':
$this->update_meta( '_give_payment_total', give_sanitize_amount_for_db( $this->total ) );
break;

default:
/**
* Fires while saving payment.
Expand Down Expand Up @@ -998,8 +994,11 @@ public function save() {

// Verify and update form meta based on the form status.
give_set_form_closed_status( $this->form_id );

}

$this->update_meta( '_give_payment_total', give_sanitize_amount_for_db( $this->total ) );

$this->pending = array();
$saved = true;
}// End if().
Expand Down

0 comments on commit 6167dd0

Please sign in to comment.