Workarea 3.1.39

Patch release notes for Workarea 3.1.39.

Fix Scroll Position Bug for Pagination in Chrome for iOS

Replace the usage of replaceState with pushState so Chrome for iOS will properly recall the scroll position of the previous page when visiting a product from search results. This is caused by Chrome not being capable of replacing state of a History object that doesn't yet exist.

Issues

Pull Requests

Commits

Return More Than 10 Results in Product Categories Admin

When finding categories for a product, provide a :size parameter equal to the total count of all categories, so that any category on the system that matches the product by rules can be viewed on the product's admin page. Previously, since no :size param was applied, Elasticsearch defaulted to returning 10 results.

Discovered (and solved) by Steph Staub. Thanks Steph!

Issues

Pull Requests

Commits

Prevent Indexing of Unplaced Orders

The IndexPaymentTransactions worker did not previously check whether the record should be indexed before trying to index it. This caused unplaced orders to appear in the admin index. To remedy this, Workarea now calls #should_be_indexed? on the search model prior to saving it in Elasticsearch.

Issues

Pull Requests

Commits

Taxons that are not navigable cannot be rendered with a #link_to, because the href argument passed into the helper is nil and Rails is converting that to the URL of the current page, making it appear as though the link is pointing to the wrong place. Use <span> tags with the same .primary-nav__link classes as the primary nav links in place of <a> tags so these items are not clickable, but can be styled the same as regular links.

Discovered by Mark Platt.

Issues

Pull Requests

Commits

Now on GitHub