Author: kwright
Date: Thu Mar 31 05:42:35 2016
New Revision: 1737180

URL: http://svn.apache.org/viewvc?rev=1737180&view=rev
Log:
Fix for CONNECTORS-1293.

Modified:
    manifoldcf/trunk/CHANGES.txt
    
manifoldcf/trunk/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java

Modified: manifoldcf/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/manifoldcf/trunk/CHANGES.txt?rev=1737180&r1=1737179&r2=1737180&view=diff
==============================================================================
--- manifoldcf/trunk/CHANGES.txt (original)
+++ manifoldcf/trunk/CHANGES.txt Thu Mar 31 05:42:35 2016
@@ -3,6 +3,10 @@ $Id$
 
 ======================= 2.4-dev =====================
 
+CONNECTORS-1293: Duplication of attribute names in the UI when
+multiple languages are installed in Documentum.
+(Radek Sklenicka, Karl Wright)
+
 CONNECTORS-1288: SharePoint connector proxy password obfuscation
 was breaking this feature.
 (Markus Schuch, Karl Wright)

Modified: 
manifoldcf/trunk/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java?rev=1737180&r1=1737179&r2=1737180&view=diff
==============================================================================
--- 
manifoldcf/trunk/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java
 (original)
+++ 
manifoldcf/trunk/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java
 Thu Mar 31 05:42:35 2016
@@ -285,7 +285,7 @@ public class DCTM extends org.apache.man
   protected List<String> getAttributesForType(String typeName)
     throws DocumentumException, ManifoldCFException, ServiceInterruption
   {
-    String strDQL = "select attr_name FROM dmi_dd_attr_info where type_name = 
'" + typeName + "'";
+    String strDQL = "select distinct attr_name FROM dmi_dd_attr_info where 
type_name = '" + typeName + "'";
 
     while (true)
     {
@@ -4201,7 +4201,7 @@ public class DCTM extends org.apache.man
     //  return new String[]{"attribute1","attribute2","attribute3"};
     try
     {
-      String strDQL = "select attr_name FROM dmi_dd_attr_info where type_name 
= '" + docType + "' order by attr_name asc";
+      String strDQL = "select distinct attr_name FROM dmi_dd_attr_info where 
type_name = '" + docType + "' order by attr_name asc";
       while (true)
       {
         boolean noSession = (session==null);


Reply via email to