From 0326376ba07a0134015ff0c79aa9bfcbb67527b2 Mon Sep 17 00:00:00 2001 From: Joshua Blum Date: Mon, 12 Oct 2026 14:28:47 +0200 Subject: [PATCH] Hide the assets "Restrict to Folder" toggle when a dynamic folder is set The `dynamic` option is a select (id, slug, author), so the `not true` condition always passed and the toggle stayed visible, even though a dynamic folder always restricts navigation regardless of its value. Co-Authored-By: Claude Opus 5.5 --- src/Fieldtypes/Assets/Assets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fieldtypes/Assets/Assets.php b/src/Fieldtypes/Assets/Assets.php index 69f985dbe49..d39aca84d63 100644 --- a/src/Fieldtypes/Assets/Assets.php +++ b/src/Fieldtypes/Assets/Assets.php @@ -89,7 +89,7 @@ protected function configFieldItems(): array 'type' => 'toggle', 'if' => [ 'container' => 'not empty', - 'dynamic' => 'not true', + 'dynamic' => 'empty', ], 'width' => '50', ],