Skip to content
Snippets Groups Projects
Commit bd7865a7 authored by Matthai Kurian's avatar Matthai Kurian
Browse files

OO-221: corrected initialization of VersionSettingsForm

parent 59628c14
No related branches found
No related tags found
No related merge requests found
......@@ -79,8 +79,10 @@ public class VersionSettingsForm extends FormBasicController {
Long maxNumber = getNumOfVersions();
if(maxNumber == null) {
numOfVersions.select("0", true);
} else if (maxNumber.longValue() == 0l) {
numOfVersions.select("0", true); // deactivated
} else if (maxNumber.longValue() == -1l) {
numOfVersions.select("-1", true);
numOfVersions.select("-1", true); // unlimited
} else {
String str = maxNumber.toString();
boolean found = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment