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

Optional custom fields not optional

Open diekmanu opened this issue 9 years ago • 6 comments

Expected Behavior (or desired behavior if a feature request)

Leave optional custom fields blank.

2017-09-29_12h06_12


Actual Behavior

Error message: 2017-09-29_12h13_56


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


Please provide answers to these questions before posting your bug report:

  • Version of Snipe-IT you're running: v4.0.5 build 40 (g42c2a66)
  • What OS and web server you're running Snipe-IT on: nginx, win7x64
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc): manual
  • WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error
  • What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error
  • If a stacktrace is provided in the error, include that too.
  • Any errors that appear in your browser's error console.
  • Confirm whether the error is reproduceable on the demo.
  • Include any additional information you can find in app/storage/logs and your webserver's logs.
  • Include what you've done so far in the installation, and if you got any error messages along the way.
  • Indicate whether or not you've manually edited any data directly in the database

diekmanu avatar Sep 29 '17 10:09 diekmanu

Can you do a pull from develop and let me know if that fixes it?

snipe avatar Sep 29 '17 10:09 snipe

(Laravel 5.4 changed the way nullable fields are handled, so that you have to specify them as nullable, whereas before you could just leave them as not required. I thought we corrected that everywhere, but apparently not.)

snipe avatar Sep 29 '17 10:09 snipe

Superb! Develop works for me. Thanks again @snipe

diekmanu avatar Sep 29 '17 10:09 diekmanu

Try one more time - I just refactored that a tiny bit and want to make sure I didn't break anything :P

snipe avatar Sep 29 '17 10:09 snipe

Commit 2e76620cf8e3647a93db4e3713260294c21ced9b still works for me.

diekmanu avatar Sep 29 '17 10:09 diekmanu

Awesome, thanks for testing so quickly!

snipe avatar Sep 29 '17 11:09 snipe