Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Right now the distinct selective items are arbitrary limited to 100. Remove the hardcoding of this value. Allow the admins to set this but default to 100.
Comment | File | Size | Author |
---|---|---|---|
#5 | let_the_admin_decide-2414249-1.patch | 2.22 KB | david_garcia |
#4 | interdiff.txt | 755 bytes | claudiu.cristea |
#4 | let_the_admin_decide-2414249-4.patch | 2.22 KB | claudiu.cristea |
Comments
Comment #1
claudiu.cristeaComment #2
david_garcia CreditAttribution: david_garcia commentedTested and works great, nice contribution.
I am missing though some validation on the field, so that it will only allow positive numbers in it.
Patch attached that uses a standard drupal validation function instead of having one of our own.
Comment #3
claudiu.cristeaIs that validator accepting 0 or empty? Because in my app I need no limitation.
Comment #4
claudiu.cristeaUnfortunatelly
element_validate_number()
validates also: -3, 14.4 and so on. Here a more correct validator but this doesn't accept 0. But this is fair, for "no limit" just let the text field empty.Comment #5
david_garcia CreditAttribution: david_garcia commentedJust made a small change, to prevent the "limited the results" message to show when there are no results, and no limit has been set.
Comment #7
claudiu.cristeathanks