snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Asset Model Default Values Checkbox Error

Open godnroc opened this issue 1 year ago • 3 comments

Debug mode

Describe the bug

When attempting to set a default value in a new asset, if a checkbox custom field is selected the default value is rejected and any previously saved default values are removed. An error of "Error validating default fieldset values." is shown.

Reproduction steps

  1. Create a custom field with the checkbox type. Populate with options.
  2. Assign the custom field to a fieldset.
  3. Create a new asset model.
  4. Select the fieldset for the new asset model.
  5. Check the option to include default values.
  6. Check one or more of the checkbox values.
  7. Attempt to save the asset.

Expected behavior

The checked values should be saved and used as the default when creating a new asset with that model.

Screenshots

Custom field for printer functions. image

Fieldset with the field contained therein. image

Attemping to add the default value to a newly created asset model. image

The error the occurs when trying to save. image

Snipe-IT Version

6.3.0

Operating System

Hosted

Web Server

Hosted

PHP Version

8.1.23

Operating System

Windows

Browser

Edge

Version

121.0.2277.83 (Official build) (64-bit)

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

godnroc avatar Feb 01 '24 19:02 godnroc

Same Problem, same way

No problem for listbox or radio.

SimBeo avatar Feb 12 '24 10:02 SimBeo

Same Problem

Kedeir avatar Feb 15 '24 14:02 Kedeir

Same here

leclou69 avatar Mar 10 '24 13:03 leclou69

I am having the same issue.

reggiepack avatar Mar 22 '24 18:03 reggiepack

Wanted to add a comment saying I am having the exact same issue. I am trying to set a field for monitors and PCs showing what video ports they have as a checkbox field, so when I need to look for replacements, I can just easily find something that is compatible with it.

Get that exact same issue when trying to save the model default value (so I don't need to manually add it multiple times for same model monitors)

Hopefully this gets a reply soon. @uberbrady thank you in advance, I know the team is hard at work with multiple tickets and updates, the app is otherwise great aside from this one issue I have.

FTTG avatar Apr 11 '24 13:04 FTTG

Just tested on the demo version for V6.3.4 and I believe this has been fixed.

godnroc avatar Apr 15 '24 14:04 godnroc