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

Custom Fields - Checkbox - Unexpected output

Open maxovitsj opened this issue 6 years ago • 5 comments

Please confirm you have done the following before posting your bug report:

Describe the bug When creating custom fields and setting the 'Form Element' to 'checkbox', the resulting output in the Asset Creation / Update screen is unexpected. (See screenshot 1) Furthermore, the values are saved in an array type and can't be searched because the value is '1' or '0', instead of it searching on the key. (See screenshot 2)

To Reproduce Steps to reproduce the behavior:

  1. Create a new Custom Field with 'Form Element' set to 'checkbox'
  2. Add this new Custom Field to a Fieldset
  3. Add this Fieldset to your Asset Model
  4. Add a new Asset of this type / Edit the Asset of this Model.

Expected behavior Only VALUEs should be displayed instead of the key-value pairs.

Screenshots Screenshot 1: shows the Add new Asset page / Edit page image Screenshot 2: shows the View Asset page image

Server (please complete the following information):

  • Snipe-IT Version: v5.0.9 build 5616 (973eacf6c3)
  • OS: Ubuntu / Docker (snipe/snipe-it:latest)
  • Web Server: Apache
  • PHP Version: 7.2.24-0ubuntu0.18.04.7

Additional context

  • Is this a fresh install or an upgrade? Fresh install (pulled docker image)
  • What OS and web server you're running Snipe-IT on: Ubuntu / Docker
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc): Docker
  • Include what you've done so far in the installation, and if you got any error messages along the way: Default installation
  • Indicate whether or not you've manually edited any data directly in the database: No

Add any other context about the problem here.

Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.

maxovitsj avatar Nov 30 '20 10:11 maxovitsj

👋 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.

welcome[bot] avatar Nov 30 '20 10:11 welcome[bot]

I'm on Version v5.0.11 - build 5695 and I still have the same issue, any fixes for that?

zlyczarny avatar Jan 15 '21 08:01 zlyczarny

+1 same issue here in v5.0.12 image

ISNL-PimP avatar Feb 02 '21 14:02 ISNL-PimP

Any update on this...? I really need this functionality to use Snipe-IT properly...

maxovitsj avatar Apr 28 '21 10:04 maxovitsj

Any update on this...? I really need this functionality to use Snipe-IT properly...

It was fixed in preovious update, I have 5.1.2 and it's working

zlyczarny avatar Apr 29 '21 07:04 zlyczarny