From 72df5dc92ef547e065f3a10f318d265236f3d220 Mon Sep 17 00:00:00 2001 From: Michele Morgan Date: Tue, 24 Jan 2017 09:17:58 -0500 Subject: [PATCH] LP#1659006: Treat the Cost field like the other money fields in the copy editor, reverting to null if blanked. Signed-off-by: Kathy Lussier --- Open-ILS/xul/staff_client/server/cat/copy_editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/cat/copy_editor.js b/Open-ILS/xul/staff_client/server/cat/copy_editor.js index f4537a2742..3d7a189e7e 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_editor.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_editor.js @@ -567,7 +567,7 @@ g.apply = function(field,value) { value = null; } if (field == 'alert_message') { value = value.replace(/^\W+$/g,''); } - if (field == 'price' || field == 'deposit_amount') { + if (field == 'price' || field == 'deposit_amount' || field == 'cost'){ if (value == '') { value = null; } else { -- 2.43.2