Project

General

Profile

Actions

Bug #15750

closed

first letter of section name missing in result display with multiple domains

Added by Axel Jindra over 18 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Target version:
-
Start date:
2006-03-01
Due date:
% Done:

0%

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

Description

I have a site with multiple domains and an indexed search page which is mounted into each domain to achieve a search across all domains (see first part of attached image).
If you choose the "section hierarchy" style to display the results the section names are the domain names and not the page titles, which is O.K. (luv it ;-)

The bug is that in domain names which contain two dots (subdomain.domain.tld) the first letter of the section name is missing (see second part of image).

(issue imported from #M2741)


Files

indexed_search_sectionhiera.gif (36.4 KB) indexed_search_sectionhiera.gif Administrator Admin, 2006-03-01 22:06
indexed_search_patch.txt (867 Bytes) indexed_search_patch.txt Administrator Admin, 2006-03-21 23:28
Actions #1

Updated by Axel Jindra over 18 years ago

I may add:
It's got nothing to do with two dots, but with domain records, which are fetched as section titles.
The problem is caused by line 741 in pi/class.tx_indexedsearch.php:
$sectionName = substr($this->getPathFromPageId($theId),1);
where the first letter is stripped to get rid of the leading / in section names.
However domain names do not have the leading slash, so they should not be stripped.

Actions #2

Updated by Axel Jindra over 18 years ago

I have created a patch which works fine for me, perhaps you'll check it yourselves and in case it's OK take it to CVS and close the bug.

Actions #3

Updated by Axel Jindra over 18 years ago

seems to be resolved in 4.0 final (or even rc3, did not check that)

Actions #4

Updated by Martin Kutschker almost 17 years ago

Closed because report could not reproduce the bug any more.

Actions

Also available in: Atom PDF