Skip to content

[Bug]: Custom field required in one Fieldset gets required in all fieldsets (even these which do not use this custom field) #19468

Description

@Dewi4nt

Snipe-IT Version

8.7.0

PHP Version

8.3.6

Composer Version

2.8.11

MySQL/MariaDB version

11.8.8-MariaDB-ubu2404

How did you install Snipe-IT?

Git install

Is this a fresh install or an upgrade?

Upgrade

What happened?

I have observed this error when importing assets.

Few of my custom fields are marked as mandatory (required) in specific Fieldsets. In other fieldsets there custom fields are not required or not included at all.
But when I try to import assets from CSV file, the system requires me to provide those asset's values, even when importing assets which Fieldsets do not include such custom fields at all.

I was able to reproduce that BUG in DEMO env as well.

Image

What browsers are you seeing the problem on?

Chrome

Can you reproduce this on the public demo?

Yes

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions