From c46e56e78fe42f448f608c4fd517c7aa6fa42b99 Mon Sep 17 00:00:00 2001
From: Nikita Hovratov <nikita.h@live.de>
Date: Thu, 13 Feb 2020 21:51:47 +0100
Subject: [PATCH] [BUGFIX] Fix broken icon for groups with allowed all tables

This fixes the wrong comparison with the key instead of the value
in the foreach loop.

Fixes: #89694
Releases: master, 9.5, 8.7
Change-Id: I6d1d4b9d89a9ac0db1215245b39edb23b3a888f8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63237
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
---
 typo3/sysext/backend/Classes/Form/FieldWizard/TableList.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typo3/sysext/backend/Classes/Form/FieldWizard/TableList.php b/typo3/sysext/backend/Classes/Form/FieldWizard/TableList.php
index bae20a2b25fd..2582dc5d6529 100644
--- a/typo3/sysext/backend/Classes/Form/FieldWizard/TableList.php
+++ b/typo3/sysext/backend/Classes/Form/FieldWizard/TableList.php
@@ -50,7 +50,7 @@ class TableList extends AbstractNode
         $allowed = GeneralUtility::trimExplode(',', $config['allowed'], true);
         $allowedTablesHtml = [];
         foreach ($allowed as $tableName) {
-            if ($allowed === '*') {
+            if ($tableName === '*') {
                 $label = $languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.allTables');
                 $allowedTablesHtml[] = '<span>';
                 $allowedTablesHtml[] =  htmlspecialchars($label);
-- 
GitLab