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: Closed
    • Priority: TBD
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Complexity:
      Undetermined
    • Development:

      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);
        }
       }

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: