Releases: Amadeco/magento2-smile-custom-entity-layered-navigation
Releases · Amadeco/magento2-smile-custom-entity-layered-navigation
v1.1.6.3
v1.1.6.2
v1.1.6.1
fix(refactor): IsEntityFiltered to detect custom-entity filters via resolvers and request params
Summary
- Retrieve catalog and custom-entity layers through their resolvers to avoid direct ObjectManager use
- Inspect request parameters against the filter list instead of relying on an uninitialized layer state
- Keep existing catalog-layer filter detection logic unchanged
Full Changelog: v1.1.6...v1.1.6.1
v1.1.6
v.1.1.5.1
fix(plugin): prevent undefined method error in MetaRobotsPlugin by adding instance check
Description:
- Added a check in
hasAppliedFilters()to ensure$resultPageis an instance ofMagento\Framework\View\Result\Pagebefore accessing layout methods. This resolves the critical error wheregetLayout()was called on incompatible result types likeForward. - Updated PHPDoc comments and code structure for better clarity and maintainability.
- Ensured compatibility with Magento 2.4.8 and PHP 8.3 standards.
Release Notes:
- Fixed bug causing fatal error on custom entity pages when controller result is a forward action (e.g., invalid routes or redirects).
- Improved plugin reliability without impacting performance.
v1.1.5
fix(layered-nav): Fix MetaRobotsPlugin calling getLayout() on invalid result type
Description:
-
Resolved an error where MetaRobotsPlugin was calling getLayout() on result objects
that don't implement this method. Added defensive checks to verify layout object
exists before attempting to access blocks. -
Error fixed: "Call to undefined method Magento\Framework\Controller\Result\Forward\Interceptor::getLayout()"
v1.1.4
fix: custom entity layered navigation indexing in scheduled mode
Description:
Removed conditional checks for scheduled mode that prevented indexing operations
from being executed. This ensures that:
- Full reindexing works in both manual and scheduled modes
- Partial reindexing works properly for entity updates
- New filterable attributes now appear in layered navigation
The indexer now consistently performs indexing operations regardless of the mode,
allowing MVIEW to handle scheduling in scheduled mode.