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