Menu

#517 Quicksearch with AND not working

Unknown
closed
nobody
None
6.6.5
Bug
8.2
Linux
2023-01-18
2023-01-17
Joachim
No

Hi Mark,

the Quicksearch with AND doesn't work any more. As an example: I've got a resource in the database:

Baetens, Jan und Charlotte Pylyser: "Comics and Time." In: The Routledge Companion to Comics. Hrsg. v. Frank Bramlett, Roy T. Cook und Aaron Meskin. London, New York: Routledge, 2016, S. 303–310.

Neither "baetens AND time" nor "baetens AND pylyser" are found. When doing an Advanced search with "creator" => Baetens, Jan AND Pylyser, Charlotte, the resource is found.

Best
Joachim

Related

News: 2023/01/wikindx-v666-released

Discussion

  • Mark Grimshaw

    Mark Grimshaw - 2023-01-18

    I'll look into it Joachim,

    Mark

     
  • Mark Grimshaw

    Mark Grimshaw - 2023-01-18

    Hi Joachim,

    Thanks for pointing this out and it's no fixed in SVN. If you wish to implement the fix right now, in core/modules/list/QUICKSEARCH.php, line 376 add:
    $this->allIds = $ids;

    so the end result is:

                case 'and':
                    if (!empty($this->allIds)) {
                        $ids = array_intersect($ids, $this->allIds);
                    }
                    $this->allIds = $ids;
                    break;
    

    Regards,

    Mark

     
  • Mark Grimshaw

    Mark Grimshaw - 2023-01-18
    • status: open --> closed
     

Log in to post a comment.