Remove nested title including self

This commit is contained in:
Leeingnyo
2021-09-14 23:15:40 +09:00
parent 57b2f7c625
commit 663c0c0b38
2 changed files with 5 additions and 4 deletions
+1 -2
View File
@@ -102,9 +102,8 @@ class Title
title = Library.default.get_title! title_id
existence = title.examine context
unless existence
context["deleted_title_ids"].concat title.deep_titles.map &.id
context["deleted_title_ids"].concat [title_id] + title.deep_titles.map &.id
context["deleted_entry_ids"].concat title.deep_entries.map &.id
Library.default.title_hash.delete title_id
end
existence
end