Skip to content

Commit 76049a3

Browse files
committed
fix(donation): update form max value
1 parent 5d81977 commit 76049a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

includes/class-give-donate-form.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,11 @@ public function get_minimum_price() {
567567
public function get_maximum_price() {
568568

569569
if ( ! isset( $this->maximum_price ) ) {
570-
$this->maximum_price = give_get_meta( $this->ID, '_give_custom_amount_range_maximum', true );
570+
$maximum_price = 999999.99;
571+
$this->maximum_price = give_get_meta( $this->ID, '_give_custom_amount_range_maximum', true, $maximum_price );
571572

572573
if ( ! $this->is_custom_price_mode() ) {
573-
$this->maximum_price = 999999.99;
574+
$this->maximum_price = $maximum_price;
574575
}
575576
}
576577

0 commit comments

Comments
 (0)