Merge pull request #241 from bsinno/bug_wrong_option_in_smtype_assign_max
Changed if statement of how we distinguish if a softwareModule type i…
This commit is contained in:
@@ -164,10 +164,10 @@ public class CreateUpdateSoftwareTypeLayout extends CreateUpdateTypeLayout {
|
|||||||
if (null != selectedTypeTag) {
|
if (null != selectedTypeTag) {
|
||||||
tagDesc.setValue(selectedTypeTag.getDescription());
|
tagDesc.setValue(selectedTypeTag.getDescription());
|
||||||
typeKey.setValue(selectedTypeTag.getKey());
|
typeKey.setValue(selectedTypeTag.getKey());
|
||||||
if (selectedTypeTag.getMaxAssignments() == Integer.MAX_VALUE) {
|
if (selectedTypeTag.getMaxAssignments() == 1) {
|
||||||
assignOptiongroup.setValue(multiAssignStr);
|
|
||||||
} else {
|
|
||||||
assignOptiongroup.setValue(singleAssignStr);
|
assignOptiongroup.setValue(singleAssignStr);
|
||||||
|
} else {
|
||||||
|
assignOptiongroup.setValue(multiAssignStr);
|
||||||
}
|
}
|
||||||
setColorPickerComponentsColor(selectedTypeTag.getColour());
|
setColorPickerComponentsColor(selectedTypeTag.getColour());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user