From b4fa4789eea7e6c4484acef5a6ce977573c2f694 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 29 Oct 2015 19:30:31 +0000 Subject: [PATCH] LP#1406786: fix remapping copies during parts merge This patch fixes an issue with how copies are mapped on the target part when using "Merge Selected" in the Monograph Parts interface. To test: [1] Create some monograph parts on a record and assign some copies to use them. [2] Use the merge parts function to collapse all of the parts created in step 1 onto a single part. [3] Verify that the copies whose original parts were removed are now mapped onto the part that was the target of the merge. Signed-off-by: Galen Charlton Signed-off-by: Dan Wells --- Open-ILS/web/js/dojo/openils/biblio/monographPartMerge.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/dojo/openils/biblio/monographPartMerge.js b/Open-ILS/web/js/dojo/openils/biblio/monographPartMerge.js index 59b557e89e..31644fd29b 100755 --- a/Open-ILS/web/js/dojo/openils/biblio/monographPartMerge.js +++ b/Open-ILS/web/js/dojo/openils/biblio/monographPartMerge.js @@ -71,10 +71,11 @@ if(!dojo._hasResource["openils.biblio.monographPartMerge"]) { dojo.forEach(cpmList, function (g) { g.part(parseInt(obj.itemID)) /* Assign "winner" DB id of mono_part. */ + g.ischanged(true); }); if (cpmList.length > 0) { - pcrud.update( cpmList, {}); + pcrud.apply( cpmList); } /* -- 2.11.0