Skip to content

Commit 8a5790e

Browse files
authored
MBS-11470: Ensure to_json_object(type) does run in Area::Edit
This is checking $self->data->{new}{type} to see whether to run to_json_object on the type data, but the edit data does not have types, it has type_id from which the type is loaded for display.
1 parent 476f5a8 commit 8a5790e

File tree

1 file changed

+1
-1
lines changed
  • lib/MusicBrainz/Server/Edit/Area

1 file changed

+1
-1
lines changed

lib/MusicBrainz/Server/Edit/Area/Edit.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ sub build_display_data
116116
$data->{ended}{new} = boolean_to_json($data->{ended}{new});
117117
}
118118

119-
if (exists $self->data->{new}{type}) {
119+
if (exists $self->data->{new}{type_id}) {
120120
$data->{type}{old} = to_json_object($data->{type}{old});
121121
$data->{type}{new} = to_json_object($data->{type}{new});
122122
}

0 commit comments

Comments
 (0)