opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/task/ModifyAttributeTask.java
@@ -166,7 +166,7 @@ ArrayList<String> allNames = new ArrayList<>(ocToDelete.getNormalizedNames()); Map<String, List<String>> extraProperties = DeleteSchemaElementsTask.cloneExtraProperties(ocToDelete); Set<AttributeType> required = new HashSet<>(ocToDelete.getRequiredAttributes()); Set<AttributeType> required = new HashSet<>(ocToDelete.getDeclaredRequiredAttributes()); Set<AttributeType> optional = new HashSet<>(ocToDelete.getOptionalAttributes()); if (required.contains(oldAttribute)) {