mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 19:05:32 -04:00
Get nested ids when title removed
This commit is contained in:
parent
9489d6abfd
commit
57b2f7c625
@ -153,8 +153,9 @@ class Library
|
|||||||
title = @title_hash[title_id]
|
title = @title_hash[title_id]
|
||||||
existence = title.examine examine_context
|
existence = title.examine examine_context
|
||||||
unless existence
|
unless existence
|
||||||
|
examine_context["deleted_title_ids"].concat title.deep_titles.map &.id
|
||||||
|
examine_context["deleted_entry_ids"].concat title.deep_entries.map &.id
|
||||||
@title_hash.delete title_id
|
@title_hash.delete title_id
|
||||||
examine_context["deleted_title_ids"] << title_id
|
|
||||||
end
|
end
|
||||||
existence
|
existence
|
||||||
end
|
end
|
||||||
|
@ -102,8 +102,9 @@ class Title
|
|||||||
title = Library.default.get_title! title_id
|
title = Library.default.get_title! title_id
|
||||||
existence = title.examine context
|
existence = title.examine context
|
||||||
unless existence
|
unless existence
|
||||||
|
context["deleted_title_ids"].concat title.deep_titles.map &.id
|
||||||
|
context["deleted_entry_ids"].concat title.deep_entries.map &.id
|
||||||
Library.default.title_hash.delete title_id
|
Library.default.title_hash.delete title_id
|
||||||
context["deleted_title_ids"] << title_id
|
|
||||||
end
|
end
|
||||||
existence
|
existence
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user