The status must be an int, so we cast it when coming from an YAOUS
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
[status_setting],
owningLib
).then(function(set) {
- var default_ccs = set[status_setting] ||
- (isFastAdd ? 0 : 5); // 0 is Available, 5 is In Process
+ var default_ccs = parseInt(set[status_setting]);
+ if (isNaN(default_ccs))
+ default_ccs = (isFastAdd ? 0 : 5); // 0 is Available, 5 is In Process
cp.status(default_ccs);
});