Edit previews break when trying to add annotation to new release

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 2022-03-14
    • Affects Version/s: None
    • Component/s: Release editor
    • None

      When trying to load edit previews for a new release, if one of them is Add Annotation, the whole thing crashes and can't be loaded, with error:

      Can't call method \"id\" on an undefined value at lib/MusicBrainz/Server/Edit/Annotation/Edit.pm line 146, <$fh> line 1.

      Probably because of it trying to find the ID for the entity in question and finding none, since it's a preview for a not-yet-created entity.

            Assignee:
            Nicolás Tamargo
            Reporter:
            Zas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2022-03-14