From: Michele Morgan Date: Tue, 24 Jan 2017 14:17:58 +0000 (-0500) Subject: LP#1659006: Treat the Cost field like the other money fields in the copy editor, X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=72df5dc92ef547e065f3a10f318d265236f3d220;p=Evergreen.git 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 --- 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 {