Details
-
Sub-task
-
Status: Closed
-
Should
-
Resolution: Fixed
-
None
-
None
-
Low
Description
Issues from TODO
Lines 92 and 93 of BaseCustomizableData.java
Link: https://github.com/openmrs/openmrs-core/blob/179938bd8c9187b327e00e8eafc8ef568b009dac/api/src/main/java/org/openmrs/BaseCustomizableData.java#L92
Convenience method that voids all existing attributes of the given type, and sets this new one.
- TODO fail if minOccurs > 1
- TODO decide whether this should require maxOccurs=1
- @should void the attribute if an attribute with same attribute type already exists and the maxOccurs is set to 1