[TASK] Add field pages.hidden to rootline default fields 27/58727/2
authorJoerg Kummer <typo3@enobe.de>
Sat, 27 Oct 2018 01:43:21 +0000 (03:43 +0200)
committerBenni Mack <benni@typo3.org>
Sat, 27 Oct 2018 13:40:45 +0000 (15:40 +0200)
Adding field 'hidden' to default field list of rootline page requests
ensures more detailed rendering of page status in FLUID using
ViewHelper core:iconForRecord.

Resolves: #86512
Releases: master
Change-Id: I111d9cb22c47d735029603463cf43c0837a0f732
Reviewed-on: https://review.typo3.org/58727
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jasmina Ließmann <code@frauliessmann.de>
Tested-by: Jasmina Ließmann <code@frauliessmann.de>
Reviewed-by: Jürgen Heym <juergen.heym@hof-university.de>
Tested-by: Jürgen Heym <juergen.heym@hof-university.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Utility/BackendUtility.php

index 0c9b5cd..7300d6d 100644 (file)
@@ -406,7 +406,8 @@ class BackendUtility
                     't3ver_wsid' => null,
                     't3ver_state' => null,
                     't3ver_stage' => null,
-                    'backend_layout_next_level' => null
+                    'backend_layout_next_level' => null,
+                    'hidden' => null
                 ];
             }
             $c = count($theRowArray);
@@ -426,6 +427,7 @@ class BackendUtility
                     't3ver_state',
                     't3ver_stage',
                     'backend_layout_next_level',
+                    'hidden'
                 ];
                 $fields = array_merge($fields, $additionalFields);
                 $output[$c] = array_intersect_key($val, array_combine($fields, $fields));
@@ -477,6 +479,7 @@ class BackendUtility
                     't3ver_state',
                     't3ver_stage',
                     'backend_layout_next_level',
+                    'hidden',
                     ...$additionalFields
                 )
                 ->from('pages')