Skip to content

Fix Custom Dropdown filtering in table questions - #42

Closed
UncleTomsCabi wants to merge 1 commit into
pluginsGLPI:mainfrom
UncleTomsCabi:fix-custom-dropdown-filter
Closed

UncleTomsCabi wants to merge 1 commit into
pluginsGLPI:mainfrom
UncleTomsCabi:fix-custom-dropdown-filter

Conversation

@UncleTomsCabi

@UncleTomsCabi UncleTomsCabi commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

When using GLPI Custom Dropdowns inside table questions, all dropdown definitions display the same combined list of values.

This happens because all custom dropdowns use the same database table (glpi_dropdowns_dropdowns), but the current implementation does not apply the system criteria that distinguish each dropdown definition.

Solution

This change updates the table question implementation to correctly filter Custom Dropdown values by applying the item's getSystemSQLCriteria() when:

  • loading dropdown options;
  • resolving stored values.

As a result, each Custom Dropdown now displays only the values that belong to its own definition.

Before

Снимок экрана 2026-07-21 143100 Снимок экрана 2026-07-21 143054

After

Screenshot 2026-07-31 163806 Screenshot 2026-07-31 163809

@UncleTomsCabi
UncleTomsCabi deleted the fix-custom-dropdown-filter branch August 2, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant