[TYPO3-dev] 4.5 pagetree API to get page uids of all subpages of a page
Stefan Galinski
sgalinski at df.eu
Tue Mar 29 19:42:55 CEST 2011
Steffen Müller wrote:
> Hi.
>
> On 29.03.2011 17:49 Stefan Galinski wrote:
>> Thanks for this useful contribution. I just found a small bug by reading
>> your code. The id is added twice to the plain array in the transformation
>> code.
>>
>> Hooks/ClickmenuAction.php (Line 131)
>>
>
> But getting child node uids works correctly with this "bug" and fails
> without.
>
Strange, but I can't see the reason by just reading the code. At least
something is wrong here as the uid is always added to the array and again in
the else branch of the following condition. You can implement a small
workaround by calling array_unique to the final result or debug the stuff to
find the real problem. :-)
--
Stefan Galinski
staatl. geprüfter Informatiktechniker
More information about the TYPO3-dev
mailing list