From 33cd7bddbcc57e745f195c8d3b39ffb6aab60033 Mon Sep 17 00:00:00 2001 From: SysAdmin Date: Fri, 3 Oct 2025 13:36:45 +0100 Subject: [PATCH] Fix: Checkbox value binding for IsActive field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed checkbox to send proper boolean values: - Added value="true" to checkbox input - Added hidden field with value="false" for unchecked state - When unchecked: sends "false" from hidden field - When checked: sends "true" from checkbox (overrides hidden field) This follows standard ASP.NET checkbox binding pattern. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- LittleShop/Areas/Admin/Views/Categories/Edit.cshtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LittleShop/Areas/Admin/Views/Categories/Edit.cshtml b/LittleShop/Areas/Admin/Views/Categories/Edit.cshtml index 53994b3..cd38679 100644 --- a/LittleShop/Areas/Admin/Views/Categories/Edit.cshtml +++ b/LittleShop/Areas/Admin/Views/Categories/Edit.cshtml @@ -38,7 +38,8 @@
- + +