Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- FIX: Bugfix release to fix issue with BrAPI observation variable re…
Browse files Browse the repository at this point in the history
…strictions.
sebastian-raubach committed Jan 16, 2023
1 parent 4c12533 commit 05299c5
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
@@ -85,13 +85,9 @@ public BaseResult<ArrayResult<ObservationVariable>> getObservationVariables(@Que
vv.setCategories(categories);
}
if (restrictions.getMin() != null)
{
vv.setMinimumValue(Integer.toString((int) Math.floor(restrictions.getMin())));
}
if (restrictions.getMin() != null)
{
if (restrictions.getMax() != null)
vv.setMaximumValue(Integer.toString((int) Math.ceil(restrictions.getMax())));
}

scale.setValidValues(vv);
}

0 comments on commit 05299c5

Please sign in to comment.