directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r545877 - /directory/studio/trunk/studio-ldapbrowser-common/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorManager.java
Date Sun, 10 Jun 2007 13:56:12 GMT
Author: seelmann
Date: Sun Jun 10 06:56:12 2007
New Revision: 545877

URL: http://svn.apache.org/viewvc?view=rev&rev=545877
Log:
Fixed problem with modification of attribute sub-types

Modified:
    directory/studio/trunk/studio-ldapbrowser-common/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorManager.java

Modified: directory/studio/trunk/studio-ldapbrowser-common/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorManager.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-ldapbrowser-common/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorManager.java?view=diff&rev=545877&r1=545876&r2=545877
==============================================================================
--- directory/studio/trunk/studio-ldapbrowser-common/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorManager.java
(original)
+++ directory/studio/trunk/studio-ldapbrowser-common/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorManager.java
Sun Jun 10 06:56:12 2007
@@ -288,7 +288,10 @@
             return this.getCurrentValueEditor( attributeHierarchy.getAttribute().getEntry(),
attributeHierarchy
                 .getAttribute().getDescription() );
         }
-        else if ( attributeHierarchy.size() == 1 && attributeHierarchy.getAttribute().getValueSize()
== 1 )
+        else if ( attributeHierarchy.size() == 1
+            && attributeHierarchy.getAttribute().getValueSize() == 1
+            && attributeHierarchy.getAttributeDescription().equalsIgnoreCase(
+                attributeHierarchy.getAttribute().getValues()[0].getAttribute().getDescription()
) )
         {
             // special case objectClass and RDN: always return MV-editor
             // perhaps this should be moved somewhere else



Mime
View raw message