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

The asset location is being deleted

Open UserGoodtm opened this issue 3 years ago • 5 comments

Debug mode

Describe the bug

Good afternoon. I see this error (bug or feature) on all versions of the service and it has not been fixed yet. The problem is the following - when checking an asset, I choose its location. If you edit something in the asset after that, then its location will be deleted. The asset will be without a location. It will not be possible to find this asset in the location, since it will not be in this location. This is easily verified in the demo version of the service.

Reproduction steps

  1. Make a checkin from of the assigned asset (release the asset from the user), choosing a location for an asset
  2. I edit some asset property (for example, order number)
  3. This is enough for the asset location to be deleted ...

Expected behavior

The asset must be located in the place where it was distributed in the "check in asset" process

Screenshots

1 2 3 Delete Order Number 4 5

Snipe-IT Version

v6.1.0 (and all previous)

Operating System

official demo site

Web Server

official demo site

PHP Version

official demo site

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

UserGoodtm avatar Apr 08 '23 15:04 UserGoodtm

and it has not been fixed yet

First we're hearing about it. We'll take a look.

snipe avatar Apr 10 '23 17:04 snipe

Hi, I tested this on mine and my location did not delete after checking in and editing the asset. I am running v6.0.14 - build 9038 (master). Could it just be in version 6.1? I haven't updated mine yet as I am keeping a close eye on any potential issues with 6.1. I am very exited to update to version 6.1 in June once school is let out. Thanks! :)

brianhoganm avatar Apr 11 '23 20:04 brianhoganm

Hi, I tested this on mine and my location did not delete after checking in and editing the asset. I am running v6.0.14 - build 9038 (master). Could it just be in version 6.1? I haven't updated mine yet as I am keeping a close eye on any potential issues with 6.1. I am very exited to update to version 6.1 in June once school is let out. Thanks! :)

An asset can have two locations - Default Location and Location. The default location is edited by the asset, and the location is assigned from the user (the user to whom the asset belongs). These two locations may be different. The default location is not affected by this problem. It is not deleted. And if the asset has only a location (without a default location), then it is deleted. I'm not making it up, it's very easy to repeat in the official demo site. While this "problem" exists, I use the default location out of necessity - when I need to place an asset in the right place, and for it to be there - during the Checkin Asset operation, I assign it the default location. In this case, the number of actions increases.. I need to assign a default location in the asset, and only then perform the Checkin Asset operation. When I need to assign an asset to a user, I do a Checkout Asset operation, after which I have to delete the default location of the asset, since it may not match the user's location.

UserGoodtm avatar Apr 11 '23 20:04 UserGoodtm

When I need to assign an asset to a user, I do a Checkout Asset operation, after which I have to delete the default location of the asset, since it may not match the user's location.

The default asset location should not need to match the user's location - that's the entire point. The default location is where it lives when it's not assigned, which gets superseded when the asset is assigned to someone.

snipe avatar Apr 16 '23 02:04 snipe

Hi there - We haven't heard back in a bit, so I'm going to close this ticket for now, but will re-open it if you're still having issues.

hackerman-hacking

snipe avatar May 10 '23 02:05 snipe