From 3bc7d49a4c3ed411233f3ca7d615d5c8dcec8636 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 bc6fad98a2..d23e66ef41 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