LP1789982: Allow Null Values in Numeric ACP Fields user/jboyer/lp1789982_acp_numeric_fields
authorJason Boyer <jboyer@library.in.gov>
Fri, 19 Oct 2018 16:22:59 +0000 (12:22 -0400)
committerJason Boyer <jboyer@library.in.gov>
Fri, 19 Oct 2018 16:22:59 +0000 (12:22 -0400)
commit19fc411cdce9be6708bd48a16549995029f343f8
tree2001afd78bee0d3dbdea051f11da151a32188b37
parentf64ec2e462827b8c7aac0008ebe11880bb389964
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 <jboyer@library.in.gov>
Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2
Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js