Skip to content

Commit

Permalink
fix(admin-form): verify minimum custom amount only for set type form
Browse files Browse the repository at this point in the history
ref #3249
  • Loading branch information
ravinderk committed May 31, 2018
1 parent 560d4f6 commit 4fc3578
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/admin/forms/dashboard-columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ function give_price_save_quick_edit( $post_id ) {
// Override the Donation minimum amount.
if (
isset( $_REQUEST['_give_custom_amount'], $_REQUEST['_give_set_price'], $_REQUEST['_give_custom_amount_range'] )
&& 'set' === $_REQUEST['_give_price_option']
&& give_is_setting_enabled( $_REQUEST['_give_custom_amount'] )
&& give_maybe_sanitize_amount( $_REQUEST['_give_set_price'] ) < give_maybe_sanitize_amount( $_REQUEST['_give_custom_amount_range']['minimum'] )
) {
Expand Down

0 comments on commit 4fc3578

Please sign in to comment.