Project

General

Profile

Revision bd1626d9

IDbd1626d921209fb5aad0a7ec36e7d364daab8ef1
Parent b8fc21ed
Child e0518e2d

Added by Patrick Plitzner over 1 year ago

ref #6668 Include deleted derivatives recursively into DeleteResult

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/OccurrenceServiceImpl.java
1225 1225
                    derivativesToDelete.add(unit);
1226 1226
                }
1227 1227
                for (DerivedUnit unit:derivativesToDelete){
1228
                    delete(unit, config);
1228
                    deleteResult.includeResult(delete(unit, config));
1229 1229
                }
1230 1230
            }
1231 1231
        }
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/UpdateResult.java
184 184
        this.setMaxStatus(includedResult.getStatus());
185 185
        this.addExceptions(includedResult.getExceptions());
186 186
        this.addUpdatedObjects(includedResult.getUpdatedObjects());
187
        //also add cdm entity of included result to updatet objects
188
        this.getUpdatedObjects().add(includedResult.getCdmEntity());
187 189
    }
188 190

  
189 191
    public boolean isOk(){

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)