From 4521fcbcf39b07f2cd8921111ee3512ce0b0b8b4 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Mon, 28 Sep 2015 11:03:17 -0400 Subject: [PATCH] webstaff: Avoid blowing away the volume value when there is no merge target Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm index 91566c2aed..9c357d67f2 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm @@ -972,7 +972,7 @@ sub fleshed_volume_update { $logger->info("vol-update: update volume"); my $resp = update_volume($vol, $editor, ($oargs->{all} or grep { $_ eq 'VOLUME_LABEL_EXISTS' } @{$oargs->{events}} or $auto_merge_vols)); return $resp->{evt} if $resp->{evt}; - $vol = $resp->{merge_vol}; + $vol = $resp->{merge_vol} if $resp->{merge_vol}; } # now update any attached copies -- 2.11.0