From 19fc411cdce9be6708bd48a16549995029f343f8 Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Fri, 19 Oct 2018 12:22:59 -0400 Subject: [PATCH] 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 --- Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 | 6 +++--- Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) 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 -- 2.11.0