Skip to content

fix(container): fix untranslated tab label#1164

Open
MyvTsv wants to merge 1 commit intopluginsGLPI:10.0/bugfixesfrom
MyvTsv:ticket42781
Open

fix(container): fix untranslated tab label#1164
MyvTsv wants to merge 1 commit intopluginsGLPI:10.0/bugfixesfrom
MyvTsv:ticket42781

Conversation

@MyvTsv
Copy link
Contributor

@MyvTsv MyvTsv commented Mar 17, 2026

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.
  • This change requires a documentation update.

Description

  • It fixes !42781
  • The translation of the tabs in the function fields wasn't working
image

Screenshots (if appropriate):

Before fix:
image

After fix:
image

@MyvTsv MyvTsv requested review from Rom1-B and stonebuzz March 17, 2026 16:04
@MyvTsv MyvTsv self-assigned this Mar 17, 2026
$display_condition = new PluginFieldsContainerDisplayCondition();
if ($display_condition->computeDisplayContainer($item, $data['id'])) {
$tabs_entries[$tab_name] = $data['label'];
$tabs_entries[$tab_name] = $tab_label;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This revert : https://github.com/pluginsGLPI/fields/pull/848/changes

Can you check if this conflicts with the other PR?

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.

2 participants