diff --git a/views/components/userfieldsform.blade.php b/views/components/userfieldsform.blade.php index 435517ed..7334da73 100644 --- a/views/components/userfieldsform.blade.php +++ b/views/components/userfieldsform.blade.php @@ -41,7 +41,7 @@ 'id' => '', 'label' => $userfield->caption, 'noNameAttribute' => true, - 'min' => 0.0001, + 'min' => 0, 'decimals' => 4, 'isRequired' => false, 'additionalCssClasses' => 'userfield-input', diff --git a/views/productform.blade.php b/views/productform.blade.php index 3ef9e350..ead54dfb 100644 --- a/views/productform.blade.php +++ b/views/productform.blade.php @@ -316,7 +316,7 @@ @include('components.numberpicker', array( 'id' => 'calories', 'label' => 'Energy (kcal)', - 'min' => '0.' . str_repeat('0', $userSettings['stock_decimal_places_amounts'] - 1) . '1', + 'min' => '0.' . str_repeat('0', $userSettings['stock_decimal_places_amounts']), 'decimals' => $userSettings['stock_decimal_places_amounts'], 'value' => $value, 'invalidFeedback' => $__t('The amount cannot be lower than %s', '0'),