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
Custom field type of CUSTOM REGEX defaults back to ANY on editing. If you then save the field again without re-selecting "CUSTOM REGEX", the custom format is overwritten by the default value used by ANY.
I'm new to Laravel, but I don't see where in the blade template or the composer it takes into account this->format not being in Helper::PREDEFINED_FORMATS for the select's default value, which appears to map both "ANY" and "CUSTOM REGEX" to the same blank value. I noticed there's a "getFormatType()" function that does return "CUSTOM REGEX" but I don't see where that's referenced anywhere.
This occurs on both the live demo and the current hosted version.
Debug mode
Describe the bug
Custom field type of CUSTOM REGEX defaults back to ANY on editing. If you then save the field again without re-selecting "CUSTOM REGEX", the custom format is overwritten by the default value used by ANY.
I'm new to Laravel, but I don't see where in the blade template or the composer it takes into account this->format not being in Helper::PREDEFINED_FORMATS for the select's default value, which appears to map both "ANY" and "CUSTOM REGEX" to the same blank value. I noticed there's a "getFormatType()" function that does return "CUSTOM REGEX" but I don't see where that's referenced anywhere.
This occurs on both the live demo and the current hosted version.
Also see previously submitted issues:
#5896
#7074
#8394
Reproduction steps
...
Expected behavior
Editing a custom field with custom regex should not default back to type of ANY.
Screenshots
No response
Snipe-IT Version
6.0.9
Operating System
Linux
Web Server
Whatever the demo uses
PHP Version
Whatever the demo uses
Operating System
No response
Browser
No response
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: