![]() |
|
search form ZP 1.4.2 - issue when refining - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: search form ZP 1.4.2 - issue when refining (/thread-9808.html) |
search form ZP 1.4.2 - issue when refining - frankm - 2012-03-28 hi, i have just upgraded to ZP 1.4.2 on my development server and i'm running some test before going live. there is something weird with the search form. if we do one search, we get the results and the reset icon is shown. the title attribute of the search button is changed to '... within previous results' now if by mistake we hit the search button without entering a new search word, no results is return. looking at the submit javascript function it should actually repeat the initial search and return the exact same results. i think line 3978 of the template_functions.php file is not correct. it reads `$('#search_input').val(<?php echo $searchwords; ?>);` but i think it should read `$('#search_input').val('<?php echo $searchwords; ?>');` the `<?php echo $searchwords;?>` should be in between simple quotes. frankm search form ZP 1.4.2 - issue when refining - frankm - 2012-03-28 actually i am not sure the refining search is working properly. if i do a first search on 'burma' and refine it with 'buddha' the results are only on 'buddha' and not '(burma) AND (buddha)' as the submit javascript function suggests it should. i wonder if line 3977 of template_functions.php should read `$('#search_input').val('(<?php echo $searchwords; ?>) AND ('+newsearch+')');` instead of `$('#search_input').val('('+<?php echo $searchwords; ?>+') AND ('+newsearch+')');` frank search form ZP 1.4.2 - issue when refining - acrylian - 2012-03-28 Note that the current release is 1.4.2.2. search form ZP 1.4.2 - issue when refining - frankm - 2012-03-28 actually that the one i am installing. here is the complete reference: zenphoto version 1.4.2.2 [9365] (Official Build) search form ZP 1.4.2 - issue when refining - acrylian - 2012-03-28 Well, the full version is an important bit of info… I am not sure about these lines. My colleague will know. search form ZP 1.4.2 - issue when refining - sbillard - 2012-03-28 Those lines have been corrected at least in the nightly build. search form ZP 1.4.2 - issue when refining - frankm - 2012-03-29 i should have gone for the nightly build then thanks.
|