grandnode2 icon indicating copy to clipboard operation
grandnode2 copied to clipboard

Setting the dates to null values on delete to handle the model state error

Open jithendraprasad9999 opened this issue 2 years ago • 2 comments

Resolves #433 Type: bugfix

Issue

Not able to delete the Product Tier Price when we assign the start date end time.

Solution

Issue is when we try to delete the Product Tier Price item with start time and end time it is , start time and end is going as GMT time and we are facing the model state error . So avoid that when we delete the item setting the start and end date to null.

Breaking changes

No

Testing

  1. Navigate to admin panel.
  2. Choose products from catalog menu and then pick any product go to prices tab and create a tire price with start and end time.
  3. Once creation of product price is done , we can delete the tire price item without any issue.

jithendraprasad9999 avatar Nov 20 '23 04:11 jithendraprasad9999

@jithendraprasad9999 Thanks for PR, I think we should find other solution. The best way will be send request with data model with properties: productId and TierPriceId.

KrzysztofPajak avatar Nov 20 '23 17:11 KrzysztofPajak

@jithendraprasad9999 Thanks for PR, I think we should find other solution. The best way will be send request with data model with properties: productId and TierPriceId.

Sure @KrzysztofPajak i will update the PR

jithendraprasad9999 avatar Nov 23 '23 05:11 jithendraprasad9999