Skip to content

Commit

Permalink
Merge pull request #1840 from reosarevok/MBS-10954
Browse files Browse the repository at this point in the history
 MBS-8141 / MBS-10954: Small improvements to Remove DiscId page
  • Loading branch information
reosarevok committed Jan 5, 2021
2 parents fcea430 + a0c1aab commit acdfb4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/MusicBrainz/Server/Controller/CDTOC.pm
Expand Up @@ -80,6 +80,11 @@ sub remove : Local Edit
$c->model('ReleaseGroup')->load($release);
$c->model('ReleaseGroup')->load_meta($release->release_group);

# For proper display of the Disc IDs tab
$c->model('Medium')->load_for_releases($release);
my $cdtoc_count = $c->model('MediumCDTOC')->find_count_by_release($release->id);
$c->stash->{release_cdtoc_count} = $cdtoc_count;

my $cdtoc = $c->model('MediumCDTOC')->get_by_medium_cdtoc($medium_id, $cdtoc_id);
$c->model('CDTOC')->load($cdtoc);

Expand Down
2 changes: 1 addition & 1 deletion root/cdtoc/remove.tt
Expand Up @@ -4,7 +4,7 @@
<li>
[% l('Are you sure you want to remove the disc ID <code>{discid}</code> from the release
{release} by {artist}?',
{ discid => medium_cdtoc.cdtoc.discid, release => link_entity(release),
{ discid => link_cdtoc(medium_cdtoc.cdtoc), release => link_entity(release),
artist => artist_credit(release.artist_credit) }) %]
</li>
<li>
Expand Down

0 comments on commit acdfb4e

Please sign in to comment.