[BUGFIX] Search in workspaces grid not working
authorHercules Karvasonis <karvason@yahoo.com>
Sat, 19 Nov 2011 09:51:10 +0000 (10:51 +0100)
committerOliver Hader <oliver@typo3.org>
Mon, 21 Nov 2011 21:15:02 +0000 (22:15 +0100)
Now the array is used correctly so the filter works.

Change-Id: I1d058ab97b9e373abf24c0dc12f7f107c6177b44
Fixes: #31475
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/6777
Reviewed-by: Marco Bresch
Tested-by: Marco Bresch
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/workspaces/Classes/Service/GridData.php

index 30ddffc..3ba030c 100644 (file)
@@ -346,8 +346,8 @@ class Tx_Workspaces_Service_GridData {
         * @return boolean
         */
        protected function isFilterTextInVisibleColumns($filterText, array $versionArray) {
-               if (is_array($GLOBALS['BE_USER']->uc['moduleData']['Workspaces']['columns'])) {
-                       foreach ($GLOBALS['BE_USER']->uc['moduleData']['Workspaces']['columns'] as $column => $value) {
+               if (is_array($GLOBALS['BE_USER']->uc['moduleData']['Workspaces'][$GLOBALS['BE_USER']->workspace]['columns'])) {
+                       foreach ($GLOBALS['BE_USER']->uc['moduleData']['Workspaces'][$GLOBALS['BE_USER']->workspace]['columns'] as $column => $value) {
                                if (isset($value['hidden']) && isset($column) && isset($versionArray[$column])) {
                                        if ($value['hidden'] == 0) {
                                                switch ($column) {