Project

General

Profile

« Previous | Next » 

Revision 8eebc58a

Added by Fabian Reimeier over 6 years ago

ref #6903 fixed repo issue

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/distributionStatus/DistributionTablePresenter.java
71 71

  
72 72
	public int updateDistributionField(String distributionAreaString, Object comboValue, Taxon taxon) {
73 73
	    TransactionStatus tx = repo.startTransaction();
74
	    taxon = (Taxon)getRepo().getTaxonService().find(taxon.getUuid());
74
	    taxon = (Taxon)repo.getTaxonService().find(taxon.getUuid());
75 75
	    Set<DefinedTermBase> chosenTerms = getChosenTerms();
76 76
	    NamedArea namedArea = null;
77 77
	    for(DefinedTermBase term:chosenTerms){
......
134 134
	    }
135 135
	    else{//update distribution
136 136
           distribution.setStatus((PresenceAbsenceTerm)comboValue);
137
           repo.getCommonService().saveOrUpdate(distribution);
137 138
           repo.commitTransaction(tx);
138 139
           return 0;
139 140
        }
......
144 145
	public Set<DefinedTermBase> getChosenTerms() {
145 146
		VaadinSession session = VaadinSession.getCurrent();
146 147
		UUID vocUUID = (UUID) session.getAttribute(DistributionEditorUtil.SATTR_SELECTED_AREA_VOCABULARY_UUID);
147
		getConversationHolder().getSession();
148
//		getConversationHolder().getSession();
148 149
		TermVocabulary<DefinedTermBase> voc = CdmSpringContextHelper.getVocabularyService().load(vocUUID, Arrays.asList("terms.representations"));
149
		voc = CdmBase.deproxy(voc);
150
//		voc = CdmBase.deproxy(voc);
150 151
		return voc.getTerms();
151 152
	}
152 153

  

Also available in: Unified diff