[BUGFIX] Show url segment for new pages 82/58082/8
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 30 Aug 2018 09:54:42 +0000 (11:54 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Thu, 30 Aug 2018 16:08:13 +0000 (18:08 +0200)
commit17a0d545d8b2fe919b2ed4ed2ddcab1f0fa6aaa0
tree7b47730e35b7c7504f948dbb23202152a928d6a2
parent973feadb14ca42cf8258fb8ee908f52301da564c
[BUGFIX] Show url segment for new pages

Fix three cases in the display condition of url segment:
* Show 'slug' if a new page in default language is added
* Resolve correct pid to positive int if a new page is
  created 'after' another one (incoming pid is negative)
* Always show slug if a new page below root (pid 0) is
  added that resolves to a NullSite

Change-Id: Id34021eb923ddde80920152a92aa76466a6e72ab
Releases: master
Resolves: #86036
Related: #85955
Reviewed-on: https://review.typo3.org/58082
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/core/Classes/Compatibility/PseudoSiteTcaDisplayCondition.php
typo3/sysext/core/Classes/Routing/SiteMatcher.php
typo3/sysext/core/Tests/Functional/Tca/PagesVisibleFieldsTest.php