Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-4924

BaseCustomizableData setAttribute fail on minOccurs and maxOccurs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: Core 2.1.0
    • Fix Version/s: Core 2.2.0
    • Component/s: Data Model
    • Labels:
    • Complexity:
      Low

      Description

      Issue created from TODO on lines 93 and 94 of BaseCustomizableData.java and BaseCustomizableMetadata.java

      /**

      • 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
        *
      • @param attribute
        */

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lehone Lenya Hope
                Reporter:
                mitchellbot James Mitchell [X] (Inactive)
                Designated Committer:
                Lenya Hope
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Time Spent - 4 hours Remaining Estimate - 7 hours
                  7h
                  Logged:
                  Time Spent - 4 hours Remaining Estimate - 7 hours
                  4h