Project

General

Profile

Revision cfc11510

IDcfc115103fd7f5d2a4f563c1c021bdd657faf0ca
Parent b3d82392
Child 23e50194

Added by Katja Luther over 3 years ago

minor

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/MediaServiceImpl.java
187 187
                } else if ((ref instanceof MediaSpecimen && config.getDeleteFrom().getId() == ref.getId() && config.getDeleteFrom() instanceof MediaSpecimen)
188 188
                        || (ref instanceof MediaSpecimen && config.isDeleteFromEveryWhere())){
189 189
                    MediaSpecimen mediaSpecimen = HibernateProxyHelper.deproxy(ref, MediaSpecimen.class);
190
                    if (config.getDeleteFrom().getId() == mediaSpecimen.getId() || config.isDeleteFromEveryWhere()){
190

  
191 191
                        mediaSpecimen.setMediaSpecimen(null);
192 192
                        updatedObject = mediaSpecimen;
193
                    } else {
194 193

  
195
                        result.setAbort();
194
                }else {
195

  
196
                    result.setAbort();
196 197

  
197 198

  
198
                    }
199 199
                }
200 200

  
201 201
            }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)