Avoid double dot at end of field unit titlecache
authorPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 19 Jul 2016 12:52:35 +0000 (14:52 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 19 Jul 2016 12:53:12 +0000 (14:53 +0200)
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/facade/DerivedUnitFacadeFieldUnitCacheStrategy.java

index 5c1eb671ee5e962c2cdf945d93ee7f9f61a88f5f..868937fd805fddf948d2f0d86e161d32230bd80e 100644 (file)
@@ -117,7 +117,7 @@ public class DerivedUnitFacadeFieldUnitCacheStrategy extends StrategyBase implem
 
                //plant description
                result = CdmUtils.concat("; ", result, facade.getPlantDescription());
 
                //plant description
                result = CdmUtils.concat("; ", result, facade.getPlantDescription());
-               if (CdmUtils.isNotEmpty(result)){
+               if (CdmUtils.isNotEmpty(result) && !result.endsWith(".")){
                        result += ".";
                }
 
                        result += ".";
                }