From 27811d420ec4ac5a6ca39410e239ca40f1a886d8 Mon Sep 17 00:00:00 2001 From: Ingolf Steinhardt Date: Mon, 19 May 2025 19:12:29 +0200 Subject: [PATCH] Fix cast model id for edit all --- src/DcGeneral/Data/Model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DcGeneral/Data/Model.php b/src/DcGeneral/Data/Model.php index 5ad1dd13f..d763b323a 100644 --- a/src/DcGeneral/Data/Model.php +++ b/src/DcGeneral/Data/Model.php @@ -115,8 +115,9 @@ public function getId() { $item = $this->getItem(); assert($item instanceof IItem); + $rawId = $item->get('id'); - return $item->get('id'); + return null === $rawId ? null : (string) $rawId; } /**