Open bastianmueller02 opened 2 years ago
👋 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.
Are those fields in the fieldset marked as required?
Are those fields in the fieldset marked as required?
No, they're not marked as required. Thats very confusing because the error also occurs when i leave the field empty, which shouldn't be a problem.
I think this is a duplicate of #9511 I have the same error with URL and DATE formats
Debug mode
Describe the bug
When trying to create a new asset with an encrypted numeric field, the following error is shown underneath the field: The must be a number.
In the same form, encrypted alphanumeric and unencrypted numeric values get accepted as expected.
This bug makes it impossible to check the format of the data and store it encrypted
To me it appears that the validation takes place after the encryption and thus the hash is checked and not the actual data. Which would explain why alphanumeric formats are accepted but numeric not
Reproduction steps
Expected behavior
Asset gets normaly created without error-message
Screenshots
No response
Snipe-IT Version
v6.0.9 - build 8587 (master)
Operating System
ubuntu 20.04.4 LTS
Web Server
apache2
PHP Version
7.4.3
Operating System
Windows
Browser
Edge
Version
104.0.1293.63
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
No response