Skip to content

[Bug]: Asset name getting cleared on assigning to user per api #18625

@feweel

Description

@feweel

Snipe-IT Version

v8.3.5

PHP Version

8.3.6

Composer Version

2.8.12

MySQL/MariaDB version

mariadb 11.4.7

How did you install Snipe-IT?

Docker

Is this a fresh install or an upgrade?

Upgrade

What happened?

Hello,

on patching an asset via the hardware endpoint with the following payload:

payload=
{"assigned_user": 112 }

this clears the assets name (patch response shows "name":"")

When adding the assets name to the payload the asset name stays the same.

I expect the name to remain unchanged.

On using the checkout endpoint for the same kind of change this works without clearing the name.

Best Regards

What browsers are you seeing the problem on?

No response

Can you reproduce this on the public demo?

N/A

Do you have full multiple company support enabled?

Yes

If you have full multiple company support enabled, do you have location scoping to company enabled?

No

Application log output

Browser console output

Common Issues

  • I have searched this repo for existing issues related to my issue (including closed issues)
  • My APP_URL is set correctly in my .env file (including http or https and no trailing slash)
  • I have searched the official Snipe-IT documentation and have checked the Common Issues documentation (where applicable)
  • I have run database migrations (where applicable).
  • I have attached screenshots and/or videos of the issue (where applicable)

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    ❓ not sure if bugThis issue has not been confirmed as a bug yetapi

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions