[open-ils-commits] [GIT] Evergreen ILS branch rel_2_12 updated. 2d83b26778162080d341507686e7a0e23049c4be
Evergreen Git
git at git.evergreen-ils.org
Fri Jun 30 10:38:48 EDT 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_12 has been updated
via 2d83b26778162080d341507686e7a0e23049c4be (commit)
from ccc428d512a45f9bb7842dc9968338e3e2f9d273 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2d83b26778162080d341507686e7a0e23049c4be
Author: Jason Etheridge <jason at equinoxinitiative.org>
Date: Mon Jun 26 08:11:28 2017 -0400
lp1678152 webstaff fix Add Copies & Volumes
Changes open-ils.cat.asset.volume.fleshed.batch.update,
AssetCommon::create_volume, and Cat::Merge::merge_volumes
to handle auto-volume merges during volume creation.
Signed-off-by: Jason Etheridge <jason at equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm
index 211e7c8..0800b88 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm
@@ -1102,7 +1102,7 @@ sub fleshed_volume_update {
} elsif( $vol->isnew ) {
$logger->info("vol-update: creating volume");
- $evt = $assetcom->create_volume( $oargs, $editor, $vol );
+ ($vol,$evt) = $assetcom->create_volume( $auto_merge_vols ? { all => 1} : $oargs, $editor, $vol );
return $evt if $evt;
} elsif( $vol->ischanged ) {
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm
index a07c9be..5f984c0 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm
@@ -550,12 +550,10 @@ sub create_volume {
if($label) {
# now restore the label and merge into the existing record
$vol->label($label);
- (undef, $evt) =
- OpenILS::Application::Cat::Merge::merge_volumes($editor, [$vol], $$vols[0]);
- return $evt if $evt;
+ return OpenILS::Application::Cat::Merge::merge_volumes($editor, [$vol], $$vols[0]);
}
- return undef;
+ return ($vol);
}
# returns the volume if it exists
@@ -597,10 +595,7 @@ sub find_or_create_volume {
$vol->suffix($suffix);
$vol->record($record_id);
- my $evt = $class->create_volume(0, $e, $vol);
- return (undef, $evt) if $evt;
-
- return ($vol);
+ return $class->create_volume(0, $e, $vol);
}
-----------------------------------------------------------------------
Summary of changes:
.../src/perlmods/lib/OpenILS/Application/Cat.pm | 2 +-
.../lib/OpenILS/Application/Cat/AssetCommon.pm | 11 +++--------
2 files changed, 4 insertions(+), 9 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list