Add custom report targets exhibitions and loans

This commit is contained in:
2022-12-31 02:03:29 +01:00
parent dc977c0ff6
commit 663edea4db
2 changed files with 5 additions and 1 deletions

2
l18n

Submodule l18n updated: dcd03ce585...69d86e4bf5

View File

@ -13,6 +13,8 @@ enum MDCustomReportTarget implements MDValueEnumInterface, JsonSerializable {
case object_single;
case object_list;
case loan;
case exhibition;
/**
* Returns a value of this type based on a string.
@ -26,6 +28,8 @@ enum MDCustomReportTarget implements MDValueEnumInterface, JsonSerializable {
return match($input) {
'object_single' => self::object_single,
'object_list' => self::object_list,
'loan' => self::loan,
'exhibition' => self::exhibition,
default => throw new MDpageParameterNotFromListException("Unknown custom report target: " . $input),
};