From 856d202b78e24c9757820c3ad3781a3701b3ef17 Mon Sep 17 00:00:00 2001 From: Scott Pouliot Date: Wed, 13 May 2026 17:18:39 -0400 Subject: [PATCH] Fix kiosk SignalR group: set ViewBag.CompanyId so tablet joins correct hub group Without this, data-company-id was empty and the JS connected to kiosk- (no ID), so StartSession signals never reached the tablet. Co-Authored-By: Claude Sonnet 4.6 --- src/PowderCoating.Web/Controllers/KioskController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PowderCoating.Web/Controllers/KioskController.cs b/src/PowderCoating.Web/Controllers/KioskController.cs index 6b18003..5b61967 100644 --- a/src/PowderCoating.Web/Controllers/KioskController.cs +++ b/src/PowderCoating.Web/Controllers/KioskController.cs @@ -669,6 +669,7 @@ public class KioskController : Controller /// Sets ViewBag properties needed by _KioskLayout from a Company entity. private async Task PopulateKioskViewBag(Company company) { + ViewBag.CompanyId = company.Id; ViewBag.CompanyName = company.CompanyName; ViewBag.CompanyLogoUrl = !string.IsNullOrEmpty(company.LogoFilePath) ? Url.Action("Logo", "Kiosk")