From c4b983550c7a59ef762a3ae360742a93a4492c7c Mon Sep 17 00:00:00 2001 From: Michele Morgan Date: Tue, 24 Jan 2017 09:17:58 -0500 Subject: [PATCH] Treat the Cost field like the other money fields in the copy editor, reverting to null if blanked. --- 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.11.0