Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
3.0.0-rc1
Description
When trying to use the query fieldtype to display children of an item the pagination does not work - trying to display the second result page results in a permission error, even when the user performing the action is "admin"
IMPORTANT: Use APP_ENV=prod and APP_DEBUG=0
Setup:
In config/packages/ezplatform.yaml:
ezplatform: system: default: content_view: line: images: match: Identifier\ContentType: "image" template: "@ezdesign/content/view/line/image.html.twig"
Create a file: templates/themes/standard/content/view/line/image.html.twig with content:
{{ ez_render_field(content, 'image', {parameters: { alias: 'small', attrs: {class: 'img-fluid img-thumbnail'}, ezlink: { href: path( "ez_urlalias", {"contentId": content.id} ), title: content.name } }}) }}
Steps to reproduce:
- Login as admin
- Start creating a new Content Type: "Gallery"
- Make it a container
- Add two fieldtypes:
- testline
- ezcontentquery
- Configure query fieldtype:
- query type: children
- returned type: images
- parameters:
content: '@=content' filter: content_type: ['@=returnedType'] sort: 'content_name asc'
- Create a Gallery Content Item
- Create 11 images under it (use multifile upload to speed it up)
- When viewing the created Gallery item switch to second page of pagination in the Query field
Expected:
The results from second page are displayed
Actual:
Error page about lack of permissions is displayed (even though I'm logged in as admin)