Bug #60363
Backend Hook "preProcess" causes JavaScript error
Status: | Rejected | Start date: | 2014-07-16 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | Jo Hasenau | % Done: | 0% |
|
Category: | Grid Elements 2.0 | Spent time: | - | |
Target version: | - | |||
TYPO3 Version: | 6.2 | PHP Version: | 5.4 |
Description
Tested with Gridelements 3.0 and Typo3 6.2:
1) Add the following hook to any content element
class DrawItem implements PageLayoutViewDrawItemHookInterface
{
public function preProcess(PageLayoutView &$parentObject, &$drawItem, &$headerContent, &$itemContent, array &$row) {
$headerContent = 'foo';
}
}
2) Open the backand, add a gridelement and put 2 or more ContentElements in the gridelement
3) Try to move the contentelement which is inside the grid
an JavaScript error occurs
Related issues
History
#1 Updated by Jo Hasenau about 1 year ago
- Status changed from New to Rejected
Sorry - but since $header is handled by reference, you have to take care yourself to NOT destroy it within your hook.
This is something which can't be handled by Gridelements.
Additionally this is the wrong tracker for Gridelements 2.x+ issues.
#2 Updated by Christian Ludwig about 1 year ago
I have a related problem with v3.0 (pulled today from git master) and TYPO3 v6.2.4. I can only edit or move the first content elements in each column of a standard TYPO3 backend layout.
TypeError: Ext.get(currentElement).parent().select('.t3-page-ce-header span span').elements[0] is undefined Source: /typo3/sysext/cms/layout/db_layout.php?id=593& Line: 361
When disabling Grid Elements, there is no problem.
Where is the right place to post new issues for Grid Elements 3?
#3 Updated by Jo Hasenau about 1 year ago
This is the ttacker: https://forge.typo3.org/projects/extension-gridelements2/issues
But i am pretty sure that there is something else involved, since the "can not edit first element after a Gridelements container" bug has been fixed already.
See #60302