Bug #32241
bug in class.tx_gridelements_tcemainhook.php
| Status: | Resolved | Start date: | 2011-12-01 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Jo Hasenau | % Done: | 0% |
|
| Category: | - | Spent time: | - | |
| Target version: | - | |||
| TYPO3 Version: | PHP Version: | |||
| Votes: | 0 |
Description
There is a bug in class.tx_gridelements_tcemainhook.php when saving a page.
This is cause in line 291 $availableColumns get an array instead of string.
AND backupColPos IN (' . $availableColumns . ')
Fixed it in trunk version quick'n'dirty (line 397). I don't know what there is happen and for what this will be used, so please check it again.
Associated revisions
Fixed issue #32241
History
Updated by Jo Hasenau over 1 year ago
- Status changed from New to Accepted
- Assignee set to Jo Hasenau
This is used to reposition Elements while switching from one layout to another.
Example:
You do a switch from a 3 column grid to a 2 column grid.
Now you will have a missing column and the elements of this column will get -2 as colPos so they will show up in an "unused elements" column (assuming your layout provides this extra column)
The original column will be saved in "backupColPos", so that your element will show up in it's original column again, when you switch back to the 3 column grid.
This will work as long as you didn't move your unused elements manually in between.
Updated by Jo Hasenau over 1 year ago
- Status changed from Accepted to Resolved
Updated by Jo Hasenau over 1 year ago
- Status changed from Resolved to Accepted
There are two other issues here.
First: Because the fieldArray has not been modified by "compareFieldArrayWithCurrentAndUnset" yet, "setUnusedElements" will always be executed.
This is due to the fact that we hook in before the array keys have been unset by TCEmain.
Additionally we have to fill in '-2,-1' as default values to the availableColumns list, since these always have to be available.
Otherwise child elements will be removed from grid elements.
Updated by Jo Hasenau over 1 year ago
- Status changed from Accepted to Resolved
Fixed in current trunk