mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Don't initialise numeric Userfields with 1.0 (fixes #1312)
This commit is contained in:
@@ -15,6 +15,9 @@
|
||||
### Chores fixes
|
||||
- Fixed that tracking chores with "Done by" a different user was not possible
|
||||
|
||||
### Userfield fixes
|
||||
- Fixed that numeric Userfields were initialised with `1.0`
|
||||
|
||||
### General & other improvements
|
||||
- Some night mode style improvements (thanks @BlizzWave and @KTibow)
|
||||
|
||||
|
@@ -34,7 +34,8 @@
|
||||
'min' => 0,
|
||||
'isRequired' => false,
|
||||
'additionalCssClasses' => 'userfield-input',
|
||||
'additionalAttributes' => 'data-userfield-name="' . $userfield->name . '"'
|
||||
'additionalAttributes' => 'data-userfield-name="' . $userfield->name . '"',
|
||||
'value' => ''
|
||||
))
|
||||
@elseif($userfield->type == \Grocy\Services\UserfieldsService::USERFIELD_TYPE_DECIMAL_NUMBER)
|
||||
@include('components.numberpicker', array(
|
||||
@@ -45,7 +46,8 @@
|
||||
'decimals' => 4,
|
||||
'isRequired' => false,
|
||||
'additionalCssClasses' => 'userfield-input',
|
||||
'additionalAttributes' => 'data-userfield-name="' . $userfield->name . '"'
|
||||
'additionalAttributes' => 'data-userfield-name="' . $userfield->name . '"',
|
||||
'value' => ''
|
||||
))
|
||||
@elseif($userfield->type == \Grocy\Services\UserfieldsService::USERFIELD_TYPE_DATE)
|
||||
@include('components.datetimepicker', array(
|
||||
|
Reference in New Issue
Block a user