Easy fix to search parameter not being passed along in URL when paging
dooleysworne opened this issue · 3 comments
dooleysworne commented
Line 54 in templates.php
Change
$parameters = $GET ? $_SERVER['QUERY_STRING'] : "" ;
to
$parameters = $_GET ? $_SERVER['QUERY_STRING'] : "" ;
Solves the problem of the search parameter not being passed along in the URL when paging.
jan-vandenberg commented
What version of Cruddiy are you using (or which git commit)? Because this line is not in the code.
See here: https://github.com/jan-vandenberg/cruddiy/blob/master/core/templates.php#L54
dooleysworne commented
???
In https://github.com/jan-vandenberg/cruddiy/blob/master/core/templates.php#L54, $GET needs to be changed to $_GET
jan-vandenberg commented
Wow, I did not catch this because my development branch wasn't synced with master (which was ahead).
Fixed now in 5222763
Thanks for pointing this out!