webstaff: Avoid blowing away the volume value when there is no merge target
authorMike Rylander <mrylander@gmail.com>
Mon, 28 Sep 2015 15:03:17 +0000 (11:03 -0400)
committerKathy Lussier <klussier@masslnc.org>
Tue, 2 Feb 2016 19:58:47 +0000 (14:58 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm

index 91566c2..9c357d6 100644 (file)
@@ -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