Project

General

Profile

Revision b3d82392

IDb3d82392cb4f995380e98f78cce544d62ae6c009
Parent 9d368a18
Child cfc11510

Added by Katja Luther over 3 years ago

minor

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/MediaServiceImpl.java
160 160
                                    specimen.removeDescription(desc);
161 161
                                }
162 162
                            } else {
163
                             // this should not be happen, because it is not deletable. see isDeletable
164 163
                                result.setAbort();
165 164

  
166

  
167 165
                            }
168 166
                        }else if (description instanceof TaxonNameDescription){
169 167
                            TaxonNameDescription desc = HibernateProxyHelper.deproxy(description, TaxonNameDescription.class);
......
179 177
                                    name.removeDescription(desc);
180 178
                                }
181 179
                            } else {
182
                             // this should not be happen, because it is not deletable. see isDeletable
180

  
183 181
                                result.setAbort();
184 182

  
185 183

  
......
192 190
                    if (config.getDeleteFrom().getId() == mediaSpecimen.getId() || config.isDeleteFromEveryWhere()){
193 191
                        mediaSpecimen.setMediaSpecimen(null);
194 192
                        updatedObject = mediaSpecimen;
193
                    } else {
194

  
195
                        result.setAbort();
196

  
197

  
195 198
                    }
196 199
                }
197 200

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)