Skip to content

[Bug]: Deleting Tags Doesn’t Remove Reference to Disambiguation Tag ID #768

Closed
@CyanVoxel

Description

@CyanVoxel

Checklist

  • I am using an up-to-date version.
  • I have read the documentation.
  • I have searched existing issues.

TagStudio Version

Alpha v9.5.0 Pre-Release 1

Operating System & Version

macOS 15.1.1

Description

When deleting a tag that is used as a parent tag on another tag and is set as its disambiguation tag, the disambiguation_id of any child tags is not cleared. This results in child tags displaying as "<NO DISAM TAG>".

Expected Behavior

When a tag used for disambiguation is deleted, it should also remove any references of itself from any child tags in the disambiguation_id column of the tags table.

Furthermore, any existing libraries that hold references to tags that have been deleted should be updated and corrected.

Steps to Reproduce

  1. Create a tag "Tag1"
  2. Create a tag "Tag2"
  3. Add Tag2 as a parent tag to Tag1, and check the "use for disambiguation" box next to it. Tag1 should now display as "Tag1 (Tag2)"
  4. Delete Tag2 from the Tag Manager
  5. Observe how Tag1 is now displayed as "<NO DISAM TAG>"

Logs

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: HighAn important issue requiring attentionTagStudio: LibraryRelating to the TagStudio library systemType: BugSomething isn't working as intended

    Type

    Projects

    Status

    ✅ Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions