Broadleaf 3.1.12-GA
Released on January 27, 2015
This is the 12th release in the 3.1 line of Broadleaf and we recommend updating to this release immediately. Some of the notable changes in this release:
Pricing modifications
Previously in Broadleaf whenever you priced an order (like with orderService.save(order, true)
then individual item prices were updated. This meant that if a customer added an item that cost $5 to their cart, the admin updated the price to be $10, and then the triggered an order reprice (like if they added another item to their cart) then that item would get updated to $10.
This is a little confusing and is not what we want. The fixed functionality does the following:
- Once an item is added to the cart by a customer that item price is never refreshed
- When a user logs in and pulls a "stale" cart back after login, item prices are refreshed
If you want to explicitly refresh the item prices in an Order/Cart, we have added a new method to OrderService
for this functionality: orderService.save(order, true, true)
. The second boolean is to update item prices.
Solr indexing Changes
We added some locking around triggering an index to make sure that 2 threads cannot trigger a reindex at the same time and fixed an edge case bug where indexing might duplicate results (we made sure to clear out the index before rebuilding it)..
Community Contributions
Part of what makes Broadleaf run is our community involvement. Special thanks to the following people that helped out with contributing pull requests and/or filing and testing defects:
An at-a-glance view of the issues that were closed in this release:
Major Bugs(6)
- Cannot filter admin permissions in the admin
- CustomerLoggedInEvent is incorrectly invoked on every request when a user is logged in
- Don't assume that the reindex core is empty when rebuilding the Solr index
- Remove redundant OnPropertyChanged when uploading an asset in the admin
- Cart item prices are not updated after a customer login when price is modified in BLC Admin
- Unexpected OrderItem reprice after updating shipping
Minor Bugs(2)
Enhancements(3)
- Add functionality to ensure that two threads within one JVM cannot concurrently do a full reindex of Solr.
- i18n Enhancement: certain fields on some entities should be translatable. (e.g. Attributes/Challenge Question)
- Remove Solr warning message on embedded Solr startup
Total Resolved Issues: 11