Project

General

Profile

Actions

Bug #67415

closed

bug with clicmenu when choosing witch option to display

Added by Christophe Monard about 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
Start date:
2015-06-11
Due date:
% Done:

100%

Estimated time:
1.00 h
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Remote Sprint

Description

When you personnalise the clickmenu items, you cannot use following options : moreoptions, hide, edit_access, edit_pageproperties.

In 6.2: the extra_page_cm_options extension is buggy
In 7 : the extra_page_cm_options get merged by copy paste, so bug is still present.

the array_splice didn't preseve array keys.

It's easy to fix. I'll try to provide a fix soon

here's the fix for 6.2 : line 106
replace :
array_splice($menuItems, $c, 0, $localItems);

by
$first = array_slice($menuItems, 0, $c, TRUE);
$last = array_slice($menuItems, $c, NULL, TRUE);
$menuItems = array_merge($first, $localItems, $last);

In 7, it need to be fixed same way, but the code can be cleaned and get rewrited to use same writing style than the rest of the extension and optimise the process.

Actions

Also available in: Atom PDF