Skip to content

Custom Asset (from Assets definitions) not available in "Associated item type" dropdown #1054

@thiagopazBR

Description

@thiagopazBR

Code of Conduct

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

Is there an existing issue for this?

  • I have searched the existing issues

GLPI Version

11.0.1

Plugin version

1.22.1

Bug description

When creating a new block in the Additional Fields plugin, custom assets created via Setup > Assets definitions are not listed as an option in the "Associated item type" dropdown.

Only the related dropdowns (like types and models) for the custom asset are shown, but not the custom asset itself, making it impossible to associate the block with it.

Page URL

plugins/fields/front/container.form.php

Steps to Reproduce

  1. Go to Setup > Assets definitions
  2. Create a new custom asset type (e.g., "MyDevices")
  3. Go to Setup > Additional fields
  4. Click the + button to create a "New item - Block"

Expected Behavior

The "Associated item type" dropdown should list the newly created custom asset, for example:

  • Assets: MyDevices

Actual Behavior

The main asset type Assets: MyDevices is missing. The only available options related to the new asset are its associated dropdowns, such as:

Dropdowns: Types
MyDevices types

Dropdowns: Models
MyDevices models

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions