Skip to content

Commit

Permalink
[BUGFIX] pages.shortcut suggest wizard should not suggest itself
Browse files Browse the repository at this point in the history
Make it impossible to select the page you are currently
working on within the suggest wizard result set.

Releases: master, 8.7
Resolves: #86412
Related: #54867
Change-Id: Ibeaacf86061f79cc3d75f181466e5caf96657401
Reviewed-on: https://review.typo3.org/58428
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
  • Loading branch information
josefglatz authored and janhelke committed Sep 28, 2018
1 parent f7a1c38 commit 445afda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion typo3/sysext/core/Configuration/TCA/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,8 @@
'minitems' => 0,
'suggestOptions' => [
'default' => [
'additionalSearchFields' => 'nav_title, alias, url'
'additionalSearchFields' => 'nav_title, alias, url',
'addWhere' => ' AND pages.uid != ###THIS_UID###'
]
],
'default' => 0
Expand Down

0 comments on commit 445afda

Please sign in to comment.