Bug 7413: (follow-up) validate norenewalbefore values better
authorGalen Charlton <gmc@esilibrary.com>
Tue, 8 Apr 2014 22:46:28 +0000 (22:46 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 8 Apr 2014 22:46:28 +0000 (22:46 +0000)
commitef25c3665bcde5278512225297100f26d3dc531a
tree4cf4883fc4a110c838b1129fdcdae0f6c399a6ba
parent39be2613a1fafd9a2d2805aa4c662088e53fad53
Bug 7413: (follow-up) validate norenewalbefore values better

This patch ensures both both '0' and strings consisting of zero
or more blanks are recognized by the circ rules editor as specifying
clearing the "no renewal before" value.  Concretely, this fixes
warnings of the following form when clearing this field:

    Argument "" isn't numeric in numeric eq (==)

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
admin/smart-rules.pl