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

Decide whether to move saveAttributesIfNecessary into a SingleCustomValueSaveHandler

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Needs Assessment
    • Priority: TBD
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      TODO item from line 226 of CustomDatatypeUtil.java in org.openmrs.customdatatype:

      /**
        * To be called by service save methods for customizable implementations.
        * Iterates over all attributes and calls save on the {@link ConceptDatatype} for any dirty ones.
        *
        * @param customizable
        */
       public static void saveAttributesIfNecessary(Customizable<?> customizable) {
        // TODO decide whether we can move this into a SingleCustomValueSaveHandler instead of leaving it here to be called by each Customizable service's save method
        for (Attribute attr : customizable.getAttributes()) {
         saveIfDirty(attr);
        }
       }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              sherlocktech Sean Stamm
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: