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

Updating column view does not persist through custom status labels

Open devvonmonahan opened this issue 3 years ago • 1 comments

Debug mode

Describe the bug

When updating the custom view of assets (as below) - this should be stored in a cookie and should work across all metastatuses and custom labels. image This works as intended if you click on "list all" on the asset list on the left side menu and refresh the page. This also works on all metastatuses.

However, once you click on any status label (custom ones in my case), it shows 80% of all the columns and has completely forgetten the selection I have made.

(Below is a screenshot of the column selection on the custom status label page) - none of these columns are selected on the all assets page so there seems to be some mismatch there. image

If I switch back to any of the metastatus views or click on all assets, it again shows me the columns I originally set.

Reproduction steps

  1. Create a custom status label (make sure show in nav bar is ticked)
  2. Go to all assets, create a custom view (select/deselect some columns)
  3. Swap to your custom status label on the left side.
  4. Your columns will no longer be filtered as you set in step 2. ...

NOTE: I believe (although can not test at the moment) that if you have no stored preferences in your cookies and select a custom view on a custom status label and refresh the page - this will persist. This breaks if you try to create a custom view on the all assets page. Again I'm not 100% sure about this - needs testing and this may help get to the bottom of the issue.

Expected behavior

When selecting a custom view on the all assets page, this should come across all status labels that have been created. image

Screenshots

No response

Snipe-IT Version

6.0.14

Operating System

Ubuntu

Web Server

Nginx

PHP Version

7.4.3

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

devvonmonahan avatar Feb 08 '23 11:02 devvonmonahan

Different views use different cookies for a reason. They persist for each of those views though.

snipe avatar Jun 30 '25 09:06 snipe