Skip to content

Commit 854b528

Browse files
committed
FIX Remove non-readonly components from sudo mode gridfield
1 parent 862fdd2 commit 854b528

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Forms/GridField/GridField.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,8 @@ public function FieldHolder($properties = [])
548548
if ($session) {
549549
$service = Injector::inst()->get(SudoModeServiceInterface::class);
550550
if (!$service->check($session)) {
551-
$this->performReadonlyTransformation();
551+
$copy = $this->performReadonlyTransformation();
552+
$this->setConfig($copy->getConfig());
552553
$this->setReadonly(true);
553554
$this->addSudoModeComponent();
554555
$sudoModeTransformation = true;

0 commit comments

Comments
 (0)