Skip to content

Comments

[TASK] Add scheduler task to fix orphans#61

Open
sypets wants to merge 1 commit intoCodersCare:masterfrom
sypets:add-tasks-to-fix-inconsistencies
Open

[TASK] Add scheduler task to fix orphans#61
sypets wants to merge 1 commit intoCodersCare:masterfrom
sypets:add-tasks-to-fix-inconsistencies

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