Add custom report targets exhibitions and loans

This commit is contained in:
Joshua Ramon Enslin 2022-12-31 02:03:29 +01:00
parent dc977c0ff6
commit 663edea4db
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
2 changed files with 5 additions and 1 deletions

2
l18n

@ -1 +1 @@
Subproject commit dcd03ce585f08b1793de30c7733dde6655c69595
Subproject commit 69d86e4bf56528e9e1ddc8e4330a9f7c0b3d4880

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),
};