Bug 9148 - Guided.pm - Allow mutiple selects and change the results limit
Summary: Guided.pm - Allow mutiple selects and change the results limit
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Reports (show other bugs)
Version: Main
Hardware: All All
: P2 normal (vote)
Assignee: Vitor Fernandes
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-26 15:33 UTC by Vitor Fernandes
Modified: 2014-12-07 20:02 UTC (History)
0 users

See Also:
Change sponsored?: Sponsored
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitor Fernandes 2012-11-26 15:33:03 UTC
Change:

$sql =~ s/\bSELECT\W+(?:\w+\W+){1,}?FROM\b|\bSELECT\W\*\WFROM\b/SELECT count(*) FROM /i;

to

$sql =~ s/\bSELECT\W+(?:\w+\W+){1,}?FROM\b|\bSELECT\W\*\WFROM\b/SELECT count(*) FROM /ig;



Change:

$limit  = 9999 unless $limit;

to

$limit  = 999999 unless $limit;