From 5552917f0d2c1638ef2fcdac7053ab9851346c1f Mon Sep 17 00:00:00 2001 From: SysAdmin Date: Fri, 3 Oct 2025 13:31:34 +0100 Subject: [PATCH] Fix: Categories Edit - nullable bool conversion error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed type conversion error in Categories/Edit.cshtml where Model.IsActive (bool?) was being evaluated in a ternary operator that requires non-nullable bool. Changed from: @(Model.IsActive ? "checked" : "") To: @(Model.IsActive == true ? "checked" : "") This properly handles null, false, and true values for the checkbox. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- LittleShop/Areas/Admin/Views/Categories/Edit.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LittleShop/Areas/Admin/Views/Categories/Edit.cshtml b/LittleShop/Areas/Admin/Views/Categories/Edit.cshtml index 9dffc2a..53994b3 100644 --- a/LittleShop/Areas/Admin/Views/Categories/Edit.cshtml +++ b/LittleShop/Areas/Admin/Views/Categories/Edit.cshtml @@ -38,7 +38,7 @@
- +