A build that we are using this for (BTW, thank you for making this available—it's a great module) noticed that when they tried to filter blog posts by a category, they would get an error.
Digging into this, Magento was giving this error: "category_ids" is not a valid attribute. The reason for this is that the search result is applied to the DataProvider before category_ids is injected (\Mirasvit\Blog\Ui\Component\DataProvider, line 82). The solution isn't the cleanest, but I am not sure if there is a better way to get this done. Essentially, if the category_ids filter is requested, we intercept that and join in the category / post linking table.
A build that we are using this for (BTW, thank you for making this available—it's a great module) noticed that when they tried to filter blog posts by a category, they would get an error.
Digging into this, Magento was giving this error:
"category_ids" is not a valid attribute.
The reason for this is that the search result is applied to the DataProvider beforecategory_ids
is injected (\Mirasvit\Blog\Ui\Component\DataProvider
, line 82). The solution isn't the cleanest, but I am not sure if there is a better way to get this done. Essentially, if thecategory_ids
filter is requested, we intercept that and join in the category / post linking table.