r19130 - gnucash/trunk/src/libqof/qof - A search with no search terms set by the user should still honor the original search constraints.

Geert Janssens gjanssens at code.gnucash.org
Thu May 6 12:23:11 EDT 2010


Author: gjanssens
Date: 2010-05-06 12:23:10 -0400 (Thu, 06 May 2010)
New Revision: 19130
Trac: http://svn.gnucash.org/trac/changeset/19130

Modified:
   gnucash/trunk/src/libqof/qof/qofquery.c
Log:
A search with no search terms set by the user should still honor the original search constraints.
For example: if a user does:
- Find customer
- Click on Customer's invoices
- Then explicitly removes the empty search term
- Click Find
=> the user should still see only the invoices for this customer.
Previously this scenario would return all bills, invoices AND vouchers in the book.

The cause was an attempt to merge two queries with AND while one query had no terms. The code
already partially checked for this, but there was still an unhandled case.



More information about the gnucash-patches mailing list