From e29e6c3136a5034dd2ee93cc3650350984335318 Mon Sep 17 00:00:00 2001 From: fs Date: Sun, 26 Apr 2026 10:05:42 +0200 Subject: [PATCH] fix(tenants-create): define $canUpdateTenant before form partial MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The shared _form.phtml partial reads $canUpdateTenant for the per-theme logo upload blocks added in 6e3fc63c, but create(default).phtml never defined it — every visit to admin/tenants/create raised an undefined- variable warning and a 500. In create-mode the actor has full edit authority over the form they are filling in (the create-authorize gate has already passed), so set $canUpdateTenant = true before requiring _form.phtml. Mirrors the value that edit($id).php derives from the EDIT_CONTEXT capabilities map. Co-Authored-By: Claude Opus 4.7 (1M context) --- pages/admin/tenants/create(default).phtml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/admin/tenants/create(default).phtml b/pages/admin/tenants/create(default).phtml index 748b391..6977a77 100644 --- a/pages/admin/tenants/create(default).phtml +++ b/pages/admin/tenants/create(default).phtml @@ -46,6 +46,10 @@ $customFieldTenantUuid = ''; $customFieldDefinitions = []; $ignoreTabStorage = true; + // In create-mode the actor has full edit authority over the form they + // are filling in; the shared _form.phtml partial reads $canUpdateTenant + // for the logo/favicon upload blocks introduced in commit 6e3fc63c. + $canUpdateTenant = true; require __DIR__ . '/_form.phtml'; ?>