You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Format requirement to a specified format, in my case BOOLEAN, is kept when switching Format Element.
Because of this the selection I made during asset creation that contained the custom field did not save and showed incorrect value derived from the old requirement.
The reproduction steps may be applicable on other Formats and other Form Elements.
Reproduction steps
Start creating a Custom Field and for Form Element choose Text Box
Set Format to BOOLEAN
Change Form Element to Radio Buttons
Enter desired Field Values and other info and hit Save
The Custom Field will now be of Element type 'radio' but Format type 'BOOLEAN'.
Use this field when creating an asset and choose any of the radio buttons. Even if the field is set to be required for its Fieldset the asset will save but whatever you chose will not be saved and will show a red (X) as in 'False' for the type BOOLEAN in the asset list.
Edit the asset and the selection will be cleared.
Expected behavior
One should be allowed to choose any of the radio buttons and they should be saved with that chosen value.
It should not require to adhere to whatever Format was first highlighted when using another type of Form Element.
When switching from a Form Element with a Format option to a Form Element without a Format option, the Format requirement should be wiped or plainly set as 'ANY' per default.
Screenshots
Snipe-IT Version
v6.0.1 - build 7750
Operating System
Ubuntu 22.04 TLS
Web Server
Apache
PHP Version
7.4
Operating System
Windows
Browser
Google Chrome
Version
100.0.4896.127
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
This is reproduceable in the demo.
Can't see any errors being thrown with debug mode on.
I.e. no log entry has been generated for this problem as I encountered it today.
Additional context
This is on a fresh install.
I used the git fetch method to install (the one which says it's easy to upgrade).
Installation server side is complete and I've been adding custom fields, sets, vendors, manufacturers, assets, etc..
I have not touched the database in any way, shape or form. I only created it and assigned the Snipe-IT user to it as instructed.
The text was updated successfully, but these errors were encountered:
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
Debug mode
Describe the bug
The Format requirement to a specified format, in my case BOOLEAN, is kept when switching Format Element.
Because of this the selection I made during asset creation that contained the custom field did not save and showed incorrect value derived from the old requirement.
The reproduction steps may be applicable on other Formats and other Form Elements.
Reproduction steps
Expected behavior
One should be allowed to choose any of the radio buttons and they should be saved with that chosen value.
It should not require to adhere to whatever Format was first highlighted when using another type of Form Element.
When switching from a Form Element with a Format option to a Form Element without a Format option, the Format requirement should be wiped or plainly set as 'ANY' per default.
Screenshots
Snipe-IT Version
v6.0.1 - build 7750
Operating System
Ubuntu 22.04 TLS
Web Server
Apache
PHP Version
7.4
Operating System
Windows
Browser
Google Chrome
Version
100.0.4896.127
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
This is reproduceable in the demo.
Can't see any errors being thrown with debug mode on.
I.e. no log entry has been generated for this problem as I encountered it today.
Additional context
This is on a fresh install.
I used the git fetch method to install (the one which says it's easy to upgrade).
Installation server side is complete and I've been adding custom fields, sets, vendors, manufacturers, assets, etc..
I have not touched the database in any way, shape or form. I only created it and assigned the Snipe-IT user to it as instructed.
The text was updated successfully, but these errors were encountered: