Skip to content

Commit 5e19360

Browse files
committed
gw-quantity-as-decimal.php: Fixed an issue with Calculation Product field not editable with decimal values.
1 parent 4f83701 commit 5e19360

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gravity-forms/gw-quantity-as-decimal.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ function modify_quantity_input_tag( $markup, $field, $value, $lead_id, $form_id
9494
}
9595

9696
function fix_content( $content, $field, $value, $lead_id, $form_id ) {
97+
if ( ! $this->is_enabled_field( $field ) ) {
98+
return $content;
99+
}
100+
97101
// ensure the step is 'any' for any fields that have a decimal value.
98102
return preg_replace_callback(
99103
'/<input([^>]*class=[\'"]ginput_quantity[\'"][^>]*)>/i',

0 commit comments

Comments
 (0)