mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noël Rouvignac
09.50.2016 ddc834f5aa8f311192cc419cf57b0648b4971b5b
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/task/ModifyEntryTask.java
@@ -601,9 +601,8 @@
      }
      List<Object> oldValues = oldEntry.getAttributeValues(attrName);
      AttributeDescription attrDesc = AttributeDescription.valueOf(attrName);
      String attrNoOptions = attrDesc.getNameOrOID().toLowerCase();
      List<org.opends.server.types.Attribute> attrs = newEntry.getAttribute(attrNoOptions);
      List<org.opends.server.types.Attribute> attrs = newEntry.getAttribute(attrDesc.getNameOrOID());
      if (!find(attrs, attrName) && !oldValues.isEmpty())
      {
        modifications.add(new ModificationItem(
@@ -616,6 +615,7 @@
  private static boolean find(List<org.opends.server.types.Attribute> attrs, String attrName)
  {
    // TODO JNR use Entry.hasAttribute(AttributeDescription) instead?
    for (org.opends.server.types.Attribute attr : attrs)
    {
      if (attr.getAttributeDescription().toString().equalsIgnoreCase(attrName))