Fix for bug #1184

In the search field, when datefrom or dateto filled, the same date entry passed to amountfrom/to, caused problem, of course.