[Koha-bugs] [Bug 29778] Deleting additional_contents leaves entries for additional languages

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 5 19:19:08 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29778

Lucas Gass <lucas at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #128957|0                           |1
        is obsolete|                            |

--- Comment #5 from Lucas Gass <lucas at bywatersolutions.com> ---
Created attachment 129040
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=129040&action=edit
Bug 29778: Prevent orphan additional contents

When deleting a content, only the main one (lang="default") is removed,
which leads to orphan contents in the DB that are still displayed on the
UI.

Test plan:
0. Don't apply this patch
1. Create some contents, translate them in different languages
2. Delete some of them
=> Note that they are still displayed on the UI and that the entries
with lang!="default" are still in the DB
3. Apply this patch
4. Repeat 1
5. Run updatedatabase
6. Delete from of the contents
=> Note that the orphan entries created before you applied the patch
have been removed and that the "delete" behaviour is now working
correnctly.

Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list