Project

General

Profile

« Previous | Next » 

Revision 1b30495e

Added by Andreas Kohlbecker almost 5 years ago

TaxonNameEditor: avoiding LIE in authorship fields

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/name/TaxonNameEditorPresenter.java
61 61
@Scope("prototype")
62 62
public class TaxonNameEditorPresenter extends AbstractCdmEditorPresenter<TaxonName, TaxonNamePopupEditorView> {
63 63

  
64
    /**
65
     *
66
     */
64

  
67 65
    private static final List<String> BASIONYM_INIT_STRATEGY = Arrays.asList(
68 66
            "$",
69 67
            "relationsFromThisName",
......
73 71

  
74 72
    private static final List<String> REFERENCE_INIT_STRATEGY = Arrays.asList("authorship", "inReference.authorship", "inReference.inReference.authorship", "inReference.inReference.inReference.authorship");
75 73

  
74
    private static final List<String> TEAM_OR_PERSON_INIT_STRATEGY = Arrays.asList(
75
            "$",
76
            "teamMembers.$"
77
            );
78

  
76 79
    private static final long serialVersionUID = -3538980627079389221L;
77 80

  
78 81
    private static final Logger logger = Logger.getLogger(TaxonNameEditorPresenter.class);
......
104 107
        getView().getRankSelect().setItemCaptionPropertyId("label");
105 108

  
106 109
        CdmFilterablePagingProvider<AgentBase, TeamOrPersonBase> termOrPersonPagingProvider = new CdmFilterablePagingProvider<AgentBase, TeamOrPersonBase>(getRepo().getAgentService(), TeamOrPersonBase.class);
110
        termOrPersonPagingProvider.setInitStrategy(TEAM_OR_PERSON_INIT_STRATEGY);
107 111
        CdmFilterablePagingProvider<AgentBase, Person> personPagingProvider = new CdmFilterablePagingProvider<AgentBase, Person>(getRepo().getAgentService(), Person.class);
108 112

  
109 113
        getView().getCombinationAuthorshipField().setFilterableTeamPagingProvider(termOrPersonPagingProvider, this);

Also available in: Unified diff