Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-10076

Give a friendlier error when trying to delete an attribute that has children

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2021-03-15
    • None
    • Admin
    • None

      The base attribute cannot be deleted without deleting its sub attributes if present.

      Steps to reproduce:

      1. Go to /admin/attributes and pick any attribute
      2. Create two attributes, one as the base and other as the child to the first
      3. Try to delete the base attribute and you'll get the error after you agree to delete

      If the error is expected, the error should be more friendly and tell something like "Remove the sub attribute before removing the base attribute"

        1. temp.png
          1.84 MB
          Anirudh Jain

            reosarevok Nicolás Tamargo
            Cyna Anirudh Jain
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2021-03-15