Skip to content
Snippets Groups Projects
Commit 213a76bd authored by gnaegi's avatar gnaegi
Browse files

OO-2276 make item type and format read only for internal formats

parent 4d840743
No related branches found
No related tags found
No related merge requests found
...@@ -96,6 +96,8 @@ public class TechnicalMetadataEditController extends FormBasicController { ...@@ -96,6 +96,8 @@ public class TechnicalMetadataEditController extends FormBasicController {
} }
} }
} }
// don't let users modify our internal formats
formatEl.setEnabled(!formatList.contains(item.getFormat()));
Formatter formatter = Formatter.getInstance(getLocale()); Formatter formatter = Formatter.getInstance(getLocale());
String creationDate = formatter.formatDateAndTime(item.getCreationDate()); String creationDate = formatter.formatDateAndTime(item.getCreationDate());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment