Bug #24656
closedWizard sort pages corrupts the navigation title
0%
Description
When using the sort pages wizard (Web > Functions > Sort pages), and typically sorting pages by title, the pages that are being sorted end up having their nav_title field populated by a counter value (except for the very first page after the sort).
Beware: this only occurs if navigation title is not set!
How to reproduce:
Take a subtree with 3 pages (showing empty nav_title as "þ" / title hereafter):
subtree
|--- þ / Bug me
|--- þ / Change
`--- þ / After all
You end up having this after the page sort (showing nav_title / title hereafter)
subtree
|--- þ / After all
|--- 0 / Bug me
`--- 1 / Change
I however the nav_title is set, this problem does not occur.
(issue imported from #M17134)
Updated by Xavier Perseguers almost 14 years ago
After lots of digging, line 3561 of t3lib_TCEmain corrupts the data
$this->fixUniqueInPid($table, $uid);
Updated by Xavier Perseguers almost 14 years ago
Sorry! Problem found in extTables.php. In an attempt to fix the inconvenience of RealURL being able to generate the same URL segment for different pages in different languages, this had been added weeks before:
$GLOBALS['TCA']['pages']['columns']['nav_title']['config']['eval'] = 'trim,uniqueInPid';
the "uniqueInPid" caused the bug and as this page sorting is really seldomly used...