Skip to content
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

[TASK] Add scheduler task to fix orphans #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sypets
Copy link
Contributor

@sypets sypets commented Nov 22, 2023

If the CType of a gridelement is changed to a non-gridelement, existing children will be orphaned. They still exist in the database, but are not visible in the backend list or page view.

This can now be fixed via a scheduler task:
The connection between the (formerly) gridelements container and child is severed by setting tx_gridelements_container to 0 and setting the colpos to the value of the formerly gridelements parent.

Related: #58

If the CType of a gridelement is changed to a non-gridelement,
existing children will be orphaned. They still exist in the
database, but are not visible in the backend list or page view.

This can now be fixed via a scheduler task:
The connection between the (formerly) gridelements container
and child is severed by setting tx_gridelements_container to 0 and
setting the colpos to the value of the formerly gridelements
parent.

Related: CodersCare#58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant