Project

General

Profile

Actions

Bug #24656

closed

Wizard sort pages corrupts the navigation title

Added by Xavier Perseguers almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-01-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

Updated by Xavier Perseguers almost 14 years ago

After lots of digging, line 3561 of t3lib_TCEmain corrupts the data

$this->fixUniqueInPid($table, $uid);

Actions #2

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...

Actions

Also available in: Atom PDF