Remove sourced object form referencing objects view #5743, #5746
authorAndreas Müller <a.mueller@bgbm.org>
Thu, 28 Apr 2016 14:43:54 +0000 (16:43 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Thu, 28 Apr 2016 14:43:54 +0000 (16:43 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/DescriptionHelper.java

index 8f92e1a..735a2df 100644 (file)
@@ -173,15 +173,16 @@ public class DescriptionHelper {
                if (element instanceof OriginalSourceBase) {
                        try{
                                OriginalSourceBase originalSource = (OriginalSourceBase) element;
-                               ISourceable sourcedObject = originalSource.getSourcedObj();
-                               String sourceObjectTitle = "";
-                               if(sourcedObject instanceof IIdentifiableEntity){
-                                       sourceObjectTitle = ((IdentifiableEntity) sourcedObject).getTitleCache();
-                               }else if(sourcedObject instanceof DescriptionElementBase){
-                                       sourceObjectTitle = "Element for description: " + ((DescriptionElementBase) sourcedObject).getInDescription().getTitleCache();
-                               }else{
-                                       throw new IllegalStateException("Unknown ISourceable object for given OriginalSourceBase");
-                               }
+//                             ISourceable sourcedObject = originalSource.getSourcedObj();
+                               //due to #5743 the bidirectionality for sourced object had to be removed 
+                               String sourceObjectTitle = "sourced object data not available (#5743)";
+//                             if(sourcedObject instanceof IIdentifiableEntity){
+//                                     sourceObjectTitle = ((IdentifiableEntity) sourcedObject).getTitleCache();
+//                             }else if(sourcedObject instanceof DescriptionElementBase){
+//                                     sourceObjectTitle = "Element for description: " + ((DescriptionElementBase) sourcedObject).getInDescription().getTitleCache();
+//                             }else{
+//                                     throw new IllegalStateException("Unknown ISourceable object for given OriginalSourceBase");
+//                             }
 
                                return CdmUtils.concat("; ", new String[]{originalSource.getIdNamespace(), originalSource.getIdInSource(), sourceObjectTitle});
                        }catch(LazyInitializationException e){