Project

General

Profile

Revision f2e16939

IDf2e16939f738caa2ad5709eaad75f16674c60228
Parent e8674a36
Child 591821c4

Added by Andreas Kohlbecker almost 3 years ago

ref #7231 bug fix for events from foreign views

View differences:

src/main/java/eu/etaxonomy/vaadin/mvp/AbstractEditorPresenter.java
50 50

  
51 51
    @EventBusListenerMethod
52 52
    public void onEditorPreSaveEvent(EditorPreSaveEvent<DTO> preSaveEvent){
53
        if(!isFromOwnView(preSaveEvent)){
54
            return;
55
        }
53 56
    }
54 57

  
55 58
    @EventBusListenerMethod
56 59
    public void onEditorSaveEvent(EditorSaveEvent<DTO> saveEvent){
57

  
60
        if(!isFromOwnView(saveEvent)){
61
            return;
62
        }
58 63
        DTO bean = saveEvent.getBean();
59 64
        saveBean(bean);
60 65
    }
......
64 69
    */
65 70
   @EventBusListenerMethod
66 71
   public void onEditorDeleteEvent(EditorDeleteEvent<DTO> deleteEvent){
67

  
72
       if(!isFromOwnView(deleteEvent)){
73
           return;
74
       }
68 75
       deleteBean(deleteEvent.getBean());
69 76
   }
70 77

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)