From 75681729546059ff1171d6463cb241f8ec45fe9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Sun, 12 Jan 2025 01:16:43 +0100 Subject: [PATCH] replace suffix " ID" only as in atk4/data --- src/Form/Layout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/Layout.php b/src/Form/Layout.php index 3555611f05..99355d45d1 100644 --- a/src/Form/Layout.php +++ b/src/Form/Layout.php @@ -173,7 +173,7 @@ protected function recursiveRender(): void if ($label === null) { $label = $element->entityField->getField()->getCaption(); if (property_exists($element, 'model')) { - $label = preg_replace('~^(?:.*\K ID$|ID )~s', '', $label); + $label = preg_replace('~ ID$~i', '', $label); } }