Hi,
We're running OpenKM CE 6.3.9 in Docker (openkm/openkm-ce:6.3.9) with version.numeration.adapter= com.openkm.vernum.MajorMinorReleaseVersionNumerationAdapter
When we update documents and check the "Increment minor version" box, the major version is incremented. And vice versa.
I think I've found the issue in the source:
In src/main/java/com/openkm/vernum/MajorMinorReleaseVersionNumerationAdapter.java
Ryan
We're running OpenKM CE 6.3.9 in Docker (openkm/openkm-ce:6.3.9) with version.numeration.adapter= com.openkm.vernum.MajorMinorReleaseVersionNumerationAdapter
When we update documents and check the "Increment minor version" box, the major version is incremented. And vice versa.
I think I've found the issue in the source:
In src/main/java/com/openkm/vernum/MajorMinorReleaseVersionNumerationAdapter.java
Code: Select all
This is reversed compared with src/main/java/com/openkm/frontend/client/widget/upload/FancyFileUpload.java ...
public static final int MINOR = 1;
public static final int MAJOR = 2;
Code: Select all
... and src/main/java/com/openkm/extension/frontend/client/widget/htmleditor/CheckinPopup.java
if (increaseMajorVersion.getValue()) {
uploadForm.setIncreaseVersion(1);
} else if (increaseMinorVersion.getValue()) {
uploadForm.setIncreaseVersion(2);
} else {
uploadForm.setIncreaseVersion(0);
}
Code: Select all
Thanks,int increaseVersion = 0;
if (increaseMajorVersion.getValue()) {
increaseVersion = 1;
} else if (increaseMinorVersion.getValue()) {
increaseVersion = 2;
}
Ryan