Skip to content

Commit 96f32df

Browse files
committed
fix template not saving content (to be reviewed again)
1 parent 63f2dae commit 96f32df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/TemplateResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected static function getFormContent(): array
111111
// Disable field UI if the record exists and user can't unlock it
112112
->disabled(fn (?Template $record) => !is_null($record) && !static::can('unlock', $record))
113113
// Save the field if record does not exist or user can unlock it
114-
->dehydrated(fn (?Template $record) => is_null($record) || !static::can('unlock', $record)),
114+
->dehydrated(fn (?Template $record) => is_null($record) || static::can('unlock', $record)),
115115
]),
116116
];
117117
}

0 commit comments

Comments
 (0)