The SelectBox in the form for adding document types to a content section did not show the name of the content type.
parent
a68d25ba61
commit
3683960f55
|
|
@ -180,7 +180,7 @@ public class ConfigurationDocumentTypesController {
|
|||
.collect(
|
||||
Collectors.toMap(
|
||||
model -> model.getContentItemClass(),
|
||||
model -> model
|
||||
model -> model.getLabel()
|
||||
)
|
||||
)
|
||||
);
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public class DocumentTypesModel {
|
|||
/**
|
||||
* The available types thare are not assigned to the content section.
|
||||
*/
|
||||
private Map<String, DocumentTypeInfoModel> availableTypes;
|
||||
private Map<String, String> availableTypes;
|
||||
|
||||
/**
|
||||
* The available lifecycles definitions.
|
||||
|
|
@ -69,13 +69,11 @@ public class DocumentTypesModel {
|
|||
this.assignedTypes = new ArrayList<>(assignedTypes);
|
||||
}
|
||||
|
||||
public Map<String, DocumentTypeInfoModel> getAvailableTypes() {
|
||||
public Map<String, String> getAvailableTypes() {
|
||||
return Collections.unmodifiableMap(availableTypes);
|
||||
}
|
||||
|
||||
public void setAvailableTypes(
|
||||
final Map<String, DocumentTypeInfoModel> availableTypes
|
||||
) {
|
||||
public void setAvailableTypes(final Map<String, String> availableTypes) {
|
||||
this.availableTypes = new HashMap<>(availableTypes);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue