Bug #29044
Ignores settings if site has more than one root page.
| Status: | Accepted | Start date: | 2011-08-17 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assignee: | Jochen Rau | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Votes: | 1 (View) |
Description
I'm using contagged on a site with more than one root pages. I included contagged TS on one of the roots with uid '48'. Now contagged ignores most of my settings, for example 'types'. That's because in tca.php it tries to determine the uid of the root page, fails, and then goes ahead with the fallback of root uid=1 which is false.
Why does it fail to determine the root uid?
tca.php::getCurrentPageId() doesnt work correctly with multiple roots...
Reproduce the bug: make up a site with two root pages. Make sure root uid is not '1'. Install contagged and include root template on the root site which is not uid=1. Now define a tag. Oops, can't determine a type for the tag, the select box is empty.
But there is an alternative way to determine the relevant uid:
tca.php#299 -> $rootline = $sysPage->getRootLine(intval($params['row']['pid']));
History
Updated by Jochen Rau almost 2 years ago
- Status changed from New to Accepted