Project

General

Profile

« Previous | Next » 

Revision 379b7034

Added by Andreas Müller almost 6 years ago

adapt int to long for counts in TaxEditor

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/AbstractCdmDetailElement.java
315 315
	    if (getEntity() instanceof CdmBase){
316 316
	    	CdmBase cdmBase = (CdmBase) getEntity();
317 317
	    	if (cdmBase.getId() != 0){
318
		        Integer referencingObjectsCount = CdmStore.getCommonService().getReferencingObjectsCount(cdmBase);
318
		        long referencingObjectsCount = CdmStore.getCommonService().getReferencingObjectsCount(cdmBase);
319 319

  
320 320
	    		if (referencingObjectsCount > 1){
321 321
	    			setWarnForReferencedObjects(formFactory.createLabel(formElement, CdmUtils.Nz("The "+ cdmBase.getUserFriendlyTypeName()+" is referenced by " + referencingObjectsCount+ " objects, if you change it, it is changed for all these objects")));

Also available in: Unified diff