Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picking checkbox with whitespace at beginning causes an error #15054

Open
2 tasks done
VoyNaLunu opened this issue Jul 9, 2024 · 1 comment
Open
2 tasks done

Picking checkbox with whitespace at beginning causes an error #15054

VoyNaLunu opened this issue Jul 9, 2024 · 1 comment
Assignees

Comments

@VoyNaLunu
Copy link

Debug mode

Describe the bug

i created custom checkbox field long time ago and left accidentally whitespace at the beginning of one of the values, it used to work some version prior to 6.3.4 but i wouldn't be able to tell which, now when saving a model with that value selected causes error: Error validating default fieldset values.

Reproduction steps

  1. Create custom checkbox field with whitespace of the beginning
  2. Attempt to apply that checkbox as default value to a model

Expected behavior

Used to work fine, not sure if intended or not

Screenshots

image

weirdissue.mp4

Snipe-IT Version

7.0.8

Operating System

docker

Web Server

docker

PHP Version

docker

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

@VoyNaLunu VoyNaLunu changed the title Default value select fails when picking checkbox value with whitespace at the beginning Picking checkbox with whitespace at beginning causes an error Jul 9, 2024
@spencerrlongg
Copy link
Collaborator

Will look into doing a better job at trimming the values, thanks for letting us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants