-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drag and drop of elements into containers kicks the colPos of the element #297
Comments
@HorstBaumann mh, cannot reproduce, did you run the container-sorting migration? |
no. how can i run this ? (no composer setup) |
use upgrade wizard, or use cli |
OK, i used the upgrade wizard. But the problem remains. php: 8.1.7 |
What database do you running, colPos is an integer field in Database, so the error you get looks like we give colPos as a string to the datahandler. |
colPos is correctly set to: int(10) unsigned [0] I discovered, that after moving the element, the uid of the new parent-container is wrongly written to the colPos-column. example: now i move element E to a new container B (uid12) (when i drop it directly to the page (not inside a container-element) the colPos is correctly updated to 0, but tx_container_parent stays on the uid of the last surrounding container - which causes the backend to put the element to the "unused-area") I think there must be an error by updating colPos and tx_container_parent while dropping the contained element to the new destination. |
@HorstBaumann sorry, cannot reproduce... Can you give me more Information, would be cool to have your Container-Configuration, your Backend-Layout, and a dump of tt_content before moving the element |
I'm having the same problem with version 2.0.4. Never used the 1.x branch as I just migrated a week ago from gridelements to container. I ran the upgrade wizard to fix the sorting multiple times. EDIT: Figured it out. I'm using the extension "paste_reference" v1.0.2 and somehow in interferes with the container colPos. The second I deactivated the extension everything is working again. |
@Adan0s very good point ! - I also use "paste_reference 2.0.0" - which seems to cause the problem in combination with container (higher than 1.6.1) |
the EXT:paste_reference uses a mix of data and cmd when moving elements like
support for this mix has been removed in 2.0 the EXT:paste_reference datahandler call in the JS should change to:
i will provide an PR |
Shortly to the info, the extension "paste_reference" caused with me also the errors indicated above. |
should be fixed using current Version of EXT:past_reference (>=2.0.1) |
As an update, a new version of paste reference (1.0.3) has been released to address and resolve this issue in TYPO3 v10 |
System:
TYPO3 11.5.15 - fresh installation
container 2.0.2
Description:
After updating container from 1.6.1 to 2.* it is no longe possible to move an element from outside a container into a container or
vice versa. The element loses its colPos.
When I downgrade to container 1.6.1 everything works well.
Error:
These fields of record xx in table "tt_content" have not been saved correctly: colPos! The values might have changed due to type casting of the database.
The text was updated successfully, but these errors were encountered: