From bdd7b7745e857372a6d0178bd76a5f19412501fe Mon Sep 17 00:00:00 2001 From: Steven Callender Date: Thu, 10 Oct 2013 16:09:06 -0400 Subject: [PATCH] Fixed title/author display at checkout for non-pre-cat items. Fixed a display problem on checkout where items that were formely pre-cats were still displaying the pre-cat data. Now it will make sure the item is still a pre-cat before using the dummy data. Signed-off-by: Steven Callender Signed-off-by: Ben Shum --- Open-ILS/xul/staff_client/server/circ/checkout.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js index e59bf74ffc..f7e1e13773 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.js +++ b/Open-ILS/xul/staff_client/server/circ/checkout.js @@ -414,13 +414,15 @@ circ.checkout.prototype = { /*********************************************************************************************/ /* Override mvr title/author with dummy title/author for Pre cat */ - if (checkout.payload.copy.dummy_title()) { - checkout.payload.record.title( checkout.payload.copy.dummy_title() ); - } - if (checkout.payload.copy.dummy_author()) { - checkout.payload.record.author( checkout.payload.copy.dummy_author() ); + if (checkout.payload.copy.call_number() == -1) { + if (checkout.payload.copy.dummy_title()) { + checkout.payload.record.title( checkout.payload.copy.dummy_title() ); + } + if (checkout.payload.copy.dummy_author()) { + checkout.payload.record.author( checkout.payload.copy.dummy_author() ); + } } - + if (checkout.payload.patron_money) { obj.most_recent_balance_owed = checkout.payload.patron_money.balance_owed(); } -- 2.11.0