Compare commits

...

1 Commits

Author SHA1 Message Date
Dora Korpar 6303421b9b bf: abortmpu days parsing 2018-02-21 11:31:26 -08:00
1 changed files with 3 additions and 2 deletions

View File

@ -513,12 +513,13 @@ class LifecycleConfiguration {
'include DaysAfterInitiation'); 'include DaysAfterInitiation');
return abortObj; return abortObj;
} }
if (parseInt(subAbort.DaysAfterInitiation[0], 10) < 1) { const daysInt = parseInt(subAbort.DaysAfterInitiation[0], 10);
if (daysInt < 1) {
abortObj.error = errors.MalformedXML.customizeDescription( abortObj.error = errors.MalformedXML.customizeDescription(
'DaysAfterInitiation is not a positive integer'); 'DaysAfterInitiation is not a positive integer');
return abortObj; return abortObj;
} }
abortObj.days = subAbort.DaysAfterInitiation; abortObj.days = daysInt;
return abortObj; return abortObj;
} }