It looks like two lines of code got duplicated in commit
e2f6cca0 in
AssetCommon. This duplication can lead to data loss for the function
update_fleshed_copies. It also lead to the following warning when
you use OpenILS::Application::Cat::AssetCommon in a script:
"my" variable $sc_entries masks earlier declaration in same scope at
/usr/local/share/perl/5.18.2/OpenILS/Application/Cat/AssetCommon.pm
line 371.
After this patch, the warning disappears.
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
my $sc_entries = $copy->stat_cat_entries;
$copy->clear_stat_cat_entries;
- my $sc_entries = $copy->stat_cat_entries;
- $copy->clear_stat_cat_entries;
-
my $notes = $copy->notes;
$copy->clear_notes;