Project

General

Profile

Revision 69d02d97

ID69d02d972a3c2d190ad0239dc62656b4d30e4a14
Parent a338301d
Child 4c7f8868

Added by Katja Luther over 3 years ago

check for id==0 before try to delete the media

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/handler/DeleteHandler.java
113 113

  
114 114

  
115 115

  
116
                    if (config.isOnlyRemoveFromGallery()){
116
                    if (config.isOnlyRemoveFromGallery() || ((Media)object).getId() == 0){
117 117
                        operations.add(new RemoveImageFromDescriptionElementOperation(label, undoContext,  (Media) object, imageGallery, postOperationEnabled));
118 118
                    }else{
119 119
                        operations.add(new DeleteMediaOperation(label, undoContext, imageGallery, (Media) object, config, postOperationEnabled));

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)