Skip to content

ItemGroup 45702: Prevent invalid item group memberships - #12064

Merged
thojou merged 1 commit into
ILIAS-eLearning:release_10from
matheuszych:igr10/45702
Sep 14, 2026
Merged

thojou merged 1 commit into
ILIAS-eLearning:release_10from
matheuszych:igr10/45702

Conversation

@matheuszych

Copy link
Copy Markdown
Contributor

See: https://mantis.ilias.de/view.php?id=45702

Item groups could keep item_group_item rows for references that no longer lived under the container, and items were still offered after objects were trashed or deleted. ilItemGroupAppEventListener reacts to ILIAS object toTrash and delete events by calling ilItemGroupItems::removeItemGroupAssociations. Persisted assignments are intersected with actual tree children when loading, getValidItems validates against assignable refs, cloning copies only valid refs, and ilItemGroupItemsTableGUI reflects that filtered set in the materials table.

/cc @thojou

See: https://mantis.ilias.de/view.php?id=45702

Item groups could keep `item_group_item` rows for references that no longer lived under the container, and items were still offered after objects were trashed or deleted. `ilItemGroupAppEventListener` reacts to ILIAS object `toTrash` and `delete` events by calling `ilItemGroupItems::removeItemGroupAssociations`. Persisted assignments are intersected with actual tree children when loading, `getValidItems` validates against assignable refs, cloning copies only valid refs, and `ilItemGroupItemsTableGUI` reflects that filtered set in the materials table.
@thojou
thojou merged commit cb706df into ILIAS-eLearning:release_10 Sep 14, 2026
3 checks passed
@thojou

thojou commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Hey @matheuszych,

thanks for the PR. I've integrated the changes into release_10, release_11 and trunk.

Kind regards,
@thojou

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.

2 participants