Skip to content

[Bug]: Not able to change asset status during checkout #19597

Description

@Bratwurstburnout

Snipe-IT Version

v8.7.2

PHP Version

PHP 8.3.6

Composer Version

Laravel 12.59

MySQL/MariaDB version

MariaDB 11.5.2

How did you install Snipe-IT?

Docker

Is this a fresh install or an upgrade?

Upgrade

What happened?

Version:
snipe/snipe-it:v8.7.2

Environment:
Docker
Laravel 12.59
PHP 8.3.6
MariaDB 11.5.2

Problem:
When checking out an asset, the status dropdown does not load.
APP_URL is set as documentation requires and update from 8.6.3 to 8.7.2 did not fix this.

Screenshot of Check-Out, this dropdown should contain 8 status options
Image

Screenshot from manual edit of asset:

Image

Browser console shows:
GET https:///api/v1/undefined/selectlist?search=herstel&page=1
returns:
404 endpoint not found

Expected:
We should not see “undefined” in the URL? Status labels should be loaded from the statuslabels endpoint.

Workaround:
Changing the status from the asset edit page works correctly.

What browsers are you seeing the problem on?

Microsoft Edge

Can you reproduce this on the public demo?

Yes

Do you have full multiple company support enabled?

No

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

I do not have full multiple company support enabled

Application log output

Browser console output

GET https://<host>/api/v1/undefined/selectlist?search=herstel&page=1
returns:
404 endpoint not found

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

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions