From 9b069603011544ac0e87e0a7361d7084ce75b915 Mon Sep 17 00:00:00 2001 From: jithendraprasad9999 Date: Mon, 20 Nov 2023 10:20:13 +0530 Subject: [PATCH] Settign the dates to null values on delete to handle the model state error --- .../Admin/Views/Product/Partials/CreateOrUpdate.Prices.cshtml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/Partials/CreateOrUpdate.Prices.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/Partials/CreateOrUpdate.Prices.cshtml index 4fbcb1515..405ed032b 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/Partials/CreateOrUpdate.Prices.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/Partials/CreateOrUpdate.Prices.cshtml @@ -282,6 +282,10 @@ confirmation: false, mode: "inline" }, + remove:function(e){ + e.model.StartDateTime= null; + e.model.EndDateTime= null; + }, scrollable: false, columns: [ @if (!adminAreaSettings.HideStoreColumn)