SyliusResourceBundle icon indicating copy to clipboard operation
SyliusResourceBundle copied to clipboard

Sorting breaks when $resources isn't an instance of ResourceGridView

Open LeanderFS opened this issue 4 years ago • 0 comments

Sylius version affected: 1.8.5

Description
When creating a filtered list using the methods described on the documentation page, the sorting breaks because the returned class is an instance of PagerFanta\PagerFanta, which doesn't have a data key as required on line 1 of _sorting.html.twig

Steps to reproduce

  1. Create a list using the methods described in the documentation
  2. Try to visit the page

Possible Solution
Not a possible solution, but the problem seems to be that resources.data does not exists when $resources is an instance of PagerFanta.

LeanderFS avatar Jan 18 '21 22:01 LeanderFS

Are you explicitly specifying your own version of Manifold? That macro is only available in the latest version.

ztellman avatar Jul 28 '16 15:07 ztellman

yes... well, I use yada, and manifold is included in that one. I excluded [manifold "0.1.4"] from yada and added [manifold "0.1.5"]. Seems to work now... Thx!

  :dependencies ...
    [yada "1.1.29" :exclusions [manifold]]
    [manifold "0.1.5"]

kurt-o-sys avatar Jul 28 '16 16:07 kurt-o-sys