Workarea 3.1.47

Patch release notes for Workarea 3.1.47.

Prevent Double Application of Order-Level Discounts When Determining Packages

In the Workarea::Packaging class, the subtotal of all shippable items already includes the order-level discounts after pricing is performed, since Order::Item#total_value is not the total prior to discounts, only tax and shipping. However, order-level discounts were being summed and deducted from the Packaging#total_value, resulting in a miscalculation of the total price of the Order. This problem doesn't manifest itself until there are a sufficient number of shipping tiers (at the very least, 3), because either the top or bottom tier will be used anyway. Remove the code for subtracting order-level discounts from the total value of the package, so that the proper shipping price will be displayed to the user in checkout.

Issues

Pull Requests

Fix New Release Form Creating Duplicates

The "with a new release" selection on the release selector pops up a mini form which prompts the user for the name of their new release. This form is dismissed if the user clicks the button, but still allows potential user input (including multiple submits), causing duplicate releases to be accidentally created if one hits enter and clicks the "Add" button before the page refreshes. Prevent this by adding data-disable-with to the button so that it can't be submitted twice in the same request cycle.

Issues

Pull Requests

Fix Duplication in Search Suggestions Indexing

This is caused by not using the query ID as the ID for the suggestion in its index after the new metrics engine in v3.4. Additionally, the BulkIndexSearches job was no longer in the scheduler, it has been re-added.

Issues

Pull Requests

Now on GitHub