From: Jason Boyer Date: Fri, 19 Oct 2018 16:22:59 +0000 (-0400) Subject: LP1789982: Allow Null Values in Numeric ACP Fields X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=19fc411cdce9be6708bd48a16549995029f343f8;p=working%2FEvergreen.git LP1789982: Allow Null Values in Numeric ACP Fields Because of the way Angular treats model values there needs to be a translation between strings and numbers (hence the str-to-* and *-to-str directives) but this can end up trying to save empty numeric values as the literal string 'null', which blows up when saving the item. In order to allow saving items with empty prices, costs, or deposits, we're better off treating them as plain strings with a regex validator for now. Signed-off-by: Jason Boyer --- diff --git a/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 b/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 index b133c7ae31..0cf06ac641 100644 --- a/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 +++ b/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 @@ -246,7 +246,7 @@
- +
@@ -276,7 +276,7 @@
- +
@@ -358,7 +358,7 @@
- +
diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index a289134ad5..4b43c21a06 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -448,8 +448,6 @@ function(egCore , $q) { cp.circ_lib( owningLib ); cp.call_number( callNumber ); cp.deposit(0); - cp.price(0); - cp.deposit_amount(0); cp.fine_level(2); // Normal cp.loan_duration(2); // Normal cp.location(1); // Stacks