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

Release Editor: Error editing release with no existing mediums/tracklists

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: NGS - Final
    • Fix Version/s: Bug fixes, 2012-02-06
    • Component/s: Edit system
    • Labels:
      None

      Description

      I go through release info, click next , add disc, existing tracklist, search by disc+artist name, found one tracklist, select it, click on "Add Disc" and..... nothing happens.

      You used to just get a Javascript error. Now you get

      Caught exception in MusicBrainz::Server::Controller::ReleaseEditor::Edit->edit "Can't call method "add_error" on an undefined value at /home/musicbrainz/musicbrainz-server/script/../lib/MusicBrainz/Server/Form/ReleaseEditor/Tracklist.pm line 234."
      
      Stack Trace
      Package 	Line 	File
      MusicBrainz::Server::Form::ReleaseEditor::Tracklist 	234 	/home/musicbrainz/musicbrainz-server/lib/MusicBrainz/Server/Form/ReleaseEditor/Tracklist.pm
      
      231:
      232: # FIXME: is there a way to set an error on the entire form,
      233: # instead of specific to a field? 
      234: $self->field('mediums')->fields->[0]->add_error (l('A medium is required')) 
      235: unless $medium_count; 
      236: }; 
      237: 
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              warp Kuno Woudt
              Reporter:
              churruka Héctor Arroyo
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  Bug fixes, 2012-02-06