mirror of
https://github.com/grocy/grocy.git
synced 2026-04-03 19:36:16 +02:00
Fixed minimum for two number inputs (fixes 1083#)
This commit is contained in:
parent
31fcdf377a
commit
be18d59735
|
|
@ -41,7 +41,7 @@
|
||||||
'id' => '',
|
'id' => '',
|
||||||
'label' => $userfield->caption,
|
'label' => $userfield->caption,
|
||||||
'noNameAttribute' => true,
|
'noNameAttribute' => true,
|
||||||
'min' => 0.0001,
|
'min' => 0,
|
||||||
'decimals' => 4,
|
'decimals' => 4,
|
||||||
'isRequired' => false,
|
'isRequired' => false,
|
||||||
'additionalCssClasses' => 'userfield-input',
|
'additionalCssClasses' => 'userfield-input',
|
||||||
|
|
|
||||||
|
|
@ -316,7 +316,7 @@
|
||||||
@include('components.numberpicker', array(
|
@include('components.numberpicker', array(
|
||||||
'id' => 'calories',
|
'id' => 'calories',
|
||||||
'label' => 'Energy (kcal)',
|
'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'],
|
'decimals' => $userSettings['stock_decimal_places_amounts'],
|
||||||
'value' => $value,
|
'value' => $value,
|
||||||
'invalidFeedback' => $__t('The amount cannot be lower than %s', '0'),
|
'invalidFeedback' => $__t('The amount cannot be lower than %s', '0'),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user