Revision 3776382f
Added by Andreas Kohlbecker about 3 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/name/SpecimenTypeDesignationDTORow.java | ||
---|---|---|
142 | 142 |
|
143 | 143 |
boolean withDesignationReference = typeStatus.getValue() != null && ((SpecimenTypeDesignationStatus)typeStatus.getValue()).hasDesignationSource(); |
144 | 144 |
|
145 |
designationReference.setEnabled(withDesignationReference); |
|
145 |
designationReference.setEnabled(withDesignationReference || designationReference.isRequired()); |
|
146 |
designationReference.setImmediate(designationReference.isRequired()); |
|
147 |
// if(designationReference.isRequired() && designationReference.isEmpty()) { |
|
148 |
// designationReference.selectFirst(); |
|
149 |
// designationReference.commitSelect(); |
|
150 |
// } |
|
146 | 151 |
designationReferenceDetail.setEnabled(withDesignationReference); |
147 | 152 |
|
148 | 153 |
mediaSpecimenReference.setEnabled(publishedImageType || unPublishedImageType); |
... | ... | |
152 | 157 |
} |
153 | 158 |
|
154 | 159 |
/** |
155 |
* |
|
156 | 160 |
* @return the 0-based position index of the <code>kindOfUnit</code> field in this class |
157 | 161 |
* which are visible according to {@link #visibleFields()) |
158 | 162 |
*/ |
... | ... | |
173 | 177 |
@Override |
174 | 178 |
public void updateRowItemsEnabledStates() { |
175 | 179 |
row.updateRowItemsEnablement(); |
176 |
|
|
177 | 180 |
} |
178 | 181 |
|
179 | 182 |
} |
Also available in: Unified diff
ref #9475 fixing NameTypeDesignations for existing names in other nom acts can not be created