Add custom report targets exhibitions and loans
This commit is contained in:
2 files changed
+5
-1
No files matched your search
+1
-1
Submodule l18n updated: dcd03ce585...69d86e4bf5.
@@ -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 @@ public static function fromString(string $input):MDCustomReportTarget {
|
||||
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),
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user