#92 search and paginate

closed-fixed
5
2005-04-19
2004-09-03
javier wilson
No

whenever i search something, get many results displayed
in many pages and then jump to a page (say page 12),
the next time i search for something it will try to go
to page 12 as well. then serach will show no results
unless there are as many results as the first search
(or at least enogh to show 12 pages).

Discussion

  • Jimmy Conner
    Jimmy Conner
    2004-09-08

    Logged In: YES
    user_id=385245

    I have confirmed this bug in the latest CVS, and am working
    on a fix. I'm not surprised it wasn't seen before, it is a
    little tricky one.

    Search for something that you know is gonna be displayed in
    a paginated view. Click on any of the pages. Now search in
    that SAME folder for something that you know is there, but
    you know is not gonna be paginated. It will show "No Results".

     
  • javier wilson
    javier wilson
    2004-10-19

    Logged In: YES
    user_id=501964

    this bus has been really annoying, i have temporarily solved
    it by modifying line 944 in search.php like this:

    if ($_REQUEST['submit'] != 'Buscar')
    sqgetGlobalVar('mailbox_cache',$mailbox_cache,SQ_SESSION);

    i am sure i am not suppossed to use _REQUEST, but as i said
    i just did it to solve this, because many users complained
    about it. actually i have no idea what mailbox_cache does,
    but this patch worked for me. what i wanted to do is: do not
    use a cached mailbox if the client just pressed the submit
    button.

     
  • Jimmy Conner
    Jimmy Conner
    2004-10-20

    Logged In: YES
    user_id=385245

    I do have a fix for this and will try to get it in ASAP, but
    in solving this bug, I have noticed another bug dealing with
    Searching and Pagination. I was going to roll both patches
    into one, but I will just go ahead and release them
    seperately, and post another tracker for the other until I
    can get around to fixing it.

     
    • assigned_to: nobody --> stekkel
    • status: open --> closed-fixed
     
  • javier wilson
    javier wilson
    2005-04-18

    • status: closed-fixed --> open-remind
     
  • javier wilson
    javier wilson
    2005-04-18

    Logged In: YES
    user_id=501964

    I have tested this in the latest CVS and the error is still
    there.

     
  • javier wilson
    javier wilson
    2005-04-19

    • status: open-remind --> closed-fixed
     
  • javier wilson
    javier wilson
    2005-04-19

    Logged In: YES
    user_id=501964

    sorry, i guess i had to wait a few hours. i re-tested now,
    it works fine.