From e124fd5c8b48e9615286d407c73e4368217711e5 Mon Sep 17 00:00:00 2001 From: Scott Pouliot Date: Tue, 26 May 2026 20:28:08 -0400 Subject: [PATCH] Fix duplicate @section Scripts crash on Edit User page Merging the kiosk PIN script and the role-permissions script into a single @section Scripts block fixes the InvalidOperationException thrown when Razor encounters two sections with the same name in the same view. Co-Authored-By: Claude Sonnet 4.6 --- src/PowderCoating.Web/Views/CompanyUsers/Edit.cshtml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/PowderCoating.Web/Views/CompanyUsers/Edit.cshtml b/src/PowderCoating.Web/Views/CompanyUsers/Edit.cshtml index b9d04f3..a3b0f56 100644 --- a/src/PowderCoating.Web/Views/CompanyUsers/Edit.cshtml +++ b/src/PowderCoating.Web/Views/CompanyUsers/Edit.cshtml @@ -306,6 +306,9 @@ @section Scripts { + @{ + await Html.RenderPartialAsync("_ValidationScriptsPartial"); + } -} - -@section Scripts { - @{ - await Html.RenderPartialAsync("_ValidationScriptsPartial"); - }