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

Take care of cascade=true in purgeObs in ObsServiceImpl.java

    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 313 in ObsServiceImpl.java of org.openmrs.api.impl:

      @Override
       public void purgeObs(Obs obs, boolean cascade) throws APIException {
        if (!purgeComplexData(obs)) {
         throw new APIException("Obs.error.unable.purge.complex.data", new Object[] { obs });
        }
        
        if (cascade) {
         throw new APIException("Obs.error.cascading.purge.not.implemented", (Object[]) null);
         // TODO delete any related objects here before deleting the obs
         // obsGroups objects?
         // orders?
        }
        
        dao.deleteObs(obs);
       }

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated: