[Koha-bugs] [Bug 7085] Problems with searching for orders in acquisitions

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 25 16:11:38 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7085

Owen Leonard <oleonard at myacpl.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|henridamien at koha-fr.org     |oleonard at myacpl.org

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> 2011-10-25 14:11:38 UTC ---
I had similar problems searching, although it was hit and miss. On a fresh
database I found I couldn't search for and find the first order I added, but I
could search for and find the *second* one.

Checking the SQL generated by GetHistory in Acquisitions.pm I couldn't see any
difference between the two queries, but I did notice that the script builds the
SQL by checking if inputs are defined:

    if ( defined $title ) {
        $query .= " AND biblio.title LIKE ? ";

I'm not sure when it's appropriate to use "if ( defined $input )" versus "if (
$input )," but changing it to the latter seems to make the query work.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list