Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/MusicBrainz/Server/Edit/Artist/Create.pm
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ sub edit_type { $EDIT_ARTIST_CREATE }
sub _create_model { 'Artist' }
sub artist_id { shift->entity_id }

sub _conflicting_entity_path {
my ($self, $mbid) = @_;
return "/artist/$mbid";
}

has '+data' => (
isa => Dict[
name => Str,
Expand Down
5 changes: 5 additions & 0 deletions lib/MusicBrainz/Server/Edit/Label/Create.pm
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ sub _create_model { 'Label' }
sub label_id { shift->entity_id }
sub edit_template { 'AddLabel' }

sub _conflicting_entity_path {
my ($self, $mbid) = @_;
return "/label/$mbid";
}

has '+data' => (
isa => Dict[
name => Str,
Expand Down
5 changes: 5 additions & 0 deletions lib/MusicBrainz/Server/Edit/Place/Create.pm
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ sub edit_type { $EDIT_PLACE_CREATE }
sub _create_model { 'Place' }
sub place_id { shift->entity_id }

sub _conflicting_entity_path {
my ($self, $mbid) = @_;
return "/place/$mbid";
}

has '+data' => (
isa => Dict[
name => Str,
Expand Down
5 changes: 5 additions & 0 deletions lib/MusicBrainz/Server/Edit/Place/Edit.pm
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ sub edit_type { $EDIT_PLACE_EDIT }

sub _edit_model { 'Place' }

sub _conflicting_entity_path {
my ($self, $mbid) = @_;
return "/place/$mbid";
}

sub change_fields
{
return Dict[
Expand Down
5 changes: 5 additions & 0 deletions lib/MusicBrainz/Server/Edit/Series/Create.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ sub edit_type { $EDIT_SERIES_CREATE }
sub _create_model { 'Series' }
sub series_id { shift->entity_id }

sub _conflicting_entity_path {
my ($self, $mbid) = @_;
return "/series/$mbid";
}

has '+data' => (
isa => Dict[
name => Str,
Expand Down
5 changes: 5 additions & 0 deletions lib/MusicBrainz/Server/Edit/Series/Edit.pm
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ sub edit_name { N_lp('Edit series', 'edit type') }
sub _edit_model { 'Series' }
sub series_id { shift->entity_id }

sub _conflicting_entity_path {
my ($self, $mbid) = @_;
return "/series/$mbid";
}

sub change_fields
{
return Dict[
Expand Down