Hi,
We found a bug in the OrderViewModel when an order is initially placed. This is caused by Dynamicweb (9.16 and 9.17.5), but easily reproduced in Swift.
Repro Steps
- Login
- Place an Order
- Go straight to Order Details
- You get an error for a null reference for at least some model.Delivery* properties
- You get an error for a null reference for at least some model.Delivery* properties
- Now we need to clear the Orders cache by either
- Recycling the website
OR - Go to the order in the backend and just click “Save” or “Save and Close”
OR - Go to Settings > Developer > Cache > Service Caches > clear the OrderService cache
- Recycling the website
- Refresh the frontend – Error is gone
https://www.screencast.com/t/yyW3892y
I could work around it by wrapping a lof of properties in null checks or Dynamicweb.Core.Converter.ToString(), but would be better to fix the root problem. Can someone confirm this to be a platform bug?
Best Regards,
Nuno Aguiar