Skip to content

[FIX] 47003: LSO: title and description not synced to translation - #12403

Open
dkippKPG wants to merge 1 commit into
ILIAS-eLearning:release_10from
kroepelin-projekte:fix/r10/dk/47003-lso-title-update
Open

dkippKPG wants to merge 1 commit into
ILIAS-eLearning:release_10from
kroepelin-projekte:fix/r10/dk/47003-lso-title-update

Conversation

@dkippKPG

Copy link
Copy Markdown
Contributor

Fixes https://mantis.ilias.de/view.php?id=47003, alternative to #10981.

ilContainer::update() writes the translation from the object's legacy title/description, and those still hold the old values after storePropertyTitleAndDescription(). So object_translation was always one save behind object_data, and copies got the outdated title.

The fix re-reads the object right before update(). That way we don't need the ilObject setters and the change stays inside the LSO. Everything from the form is already stored at that point, so nothing gets lost.

Tested on 10, 11, 12 and trunk, and the commit can be cherry-picked as is. On 12 and trunk the LOM title is one save behind as well, and this fixes it too.

Re-read the object before calling update(), so the translation is
written with the stored values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant