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

Cannot drag the field order in fieldset

Open cliff-LINKS opened this issue 6 years ago • 3 comments

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

Describe the bug Since I upgraded to version 5 I can't drag to reorder fields in a fieldset. The drag dots do not react on a click and drag, they are not selectable (1). I can insert a field in a certain position by the order value, but once added it can not be reordered.

If I add fields by order value, the value does not get incremented. Even if I close and reopen the Custom Fields - Field Set page, the duplicate order values remain. As shown in the screen dump attached, I have several 22-lines (2).

In the UI, the added fields are shown in the correct order as they were added by order value.

Screenshots If applicable, add screenshots to help explain your problem. Screenshot fieldset reordering

Server (please complete the following information):

  • Snipe-IT Version: 5.0.3
  • OS: macOS 10.13.6
  • Web Server: Apache
  • PHP Version: 7.1.33

Desktop (please complete the following information):

  • OS: macOS 10.13.6 and 10.15.7
  • Browser: Safari, Firefox and Chrome
  • Version: 14.0, 82 and 86

Smartphone (please complete the following information):

  • Device: iPad Pro
  • OS: iPadOS 14.0.1 and 14.1
  • Browser: Safari

Error Messages

  • WITH DEBUG TURNED ON, I don't get a particular error.
  • The browser console gives me this error: TypeError: $("#sort tbody").sortable is not a function. (In '$("#sort tbody").sortable({ helper: fixHelperModified, stop: updateIndex })', '$("#sort tbody").sortable' is undefined)
  • Confirm whether the error is reproducible on the demo: https://snipeitapp.com/demo. Yes the demo reacts exactly the same.

Additional context

  • This a an upgrade from version 4.9.5
  • The upgrade was installed by php upgrade.php
  • The database was not edited manually

cliff-LINKS avatar Oct 24 '20 19:10 cliff-LINKS

👋 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 Oct 24 '20 19:10 welcome[bot]

+1 to this on versions 5.0.0 and 5.0.4. I noticed the following error in Developer Tools - not sure if it's relevant Screenshot 2020-10-29 at 10 57 19

mikedowler avatar Oct 29 '20 10:10 mikedowler

This is now fixed on develop

snipe avatar Nov 13 '20 07:11 snipe