[Koha-bugs] [Bug 1707] Search for patron '%' returns all results

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 18 21:11:13 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=1707

Marc Véron <veron at veron.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #62301|0                           |1
        is obsolete|                            |

--- Comment #11 from Marc Véron <veron at veron.ch> ---
Created attachment 62324
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=62324&action=edit
Bug 1707: Do not return more than 100 patrons matching the attributes search

As you can feel, this patch is not perfect as we are hardcodind the
number of results to return.
But this number should be correct in the most cases.

Test plan:
With a large number of patrons, using attributes, you can search for
something very generic, like '%'.
Without this patch, the MySQL server could be overloaded because of the
generated query (built from borrowernumbers).

Signed-off-by: Marc Véron <veron at veron.ch>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list