Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Release Branch 13.07, Release Branch 14.12, Release Branch 15.12, Release Branch 16.11, Trunk
-
None
Description
To reproduce
- Get to https://demo-stable.ofbiz.apache.org/catalog/control/EditProduct?productId=GZ-1000
- Click on the "Product Page" button
You may notice an error which does appear erratically but most of the time, same on trunk demo and locally. This happens because sometimes the BREAD_CRUMB_TRAIL session attribute is empty or null. "Why not alway?" you might ask. I had no time to investigate but I guess because there is no bread crum trail when coming from catalog, and for some weird reasons, it's sometimes there.
Anyway my fix is simple, if there is no BREAD_CRUMB_TRAIL in session I bypass the bread crum block in BreadCrumbs.ftl. It's not perfect but look far better