]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1379815 Add missing behavior to update_copy_stat_entries
authorDan Wells <dbw2@calvin.edu>
Wed, 8 Oct 2014 17:35:43 +0000 (13:35 -0400)
committerBen Shum <bshum@biblio.org>
Wed, 19 Aug 2015 16:13:59 +0000 (12:13 -0400)
commitb1c8c14e48abaa729ae164fd969ffe5c304a857d
tree1895957375d7ae9f3807156f829d6d8c5bc2e1bb
parent55f4479eb3adeb2f67ab88b566d8fc7453bc3ed3
LP#1379815 Add missing behavior to update_copy_stat_entries

The current function doesn't provide the level of control we need, even
with the 'delete_stats' flag set to zero. This commit adds a new
'add_or_update_only' option which preserves existing stat cat entry maps
for any stat cat not represented on the incoming copy object, and
updates values when appropriate.

This commit also updates the function comment for better clarity.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm