Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295290

Entity Reference Views Limit not working

$
0
0

Problem/Motivation

Hello,

The limit of entity reference when I use views is not working it's aways 10 instead of use the views pager

Steps to reproduce

  • Create a new views and create a display type entity reference
  • Select 50 items on pager
  • Go to any content type and create an entity reference field
  • On reference method select views after that select your view
  • Create a new content type, fill out anything that have more than 10 contents on reference field, it will show just 10 items

Proposed resolution

If a limit is set on the view via a pager, use that setting. If no pager is set on the view, add a pager with a limit of 10 so users don't unexpectedly dig themselves into a huge performance hit when removing the pager from the view.

Remaining tasks

Add patch to use the pager
Add tests

User interface changes

None, UI settings are now actually used instead of ignored.

API changes

none

Data model changes

none


Viewing all articles
Browse latest Browse all 295290

Trending Articles