Bug 28483: Remove warnings from Search.t
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 22 Jun 2021 19:41:55 +0000 (16:41 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Jul 2021 09:44:55 +0000 (11:44 +0200)
commitb8ab792dc439d84efdba84d58da4eec6b23adf9e
tree44a9291d81f4dfd02dc518e313d11b90b62f28f7
parent0a8f7b3645ba38af21ec3fbd1acbcce8a07d6707
Bug 28483: Remove warnings from Search.t

There are too many warnings about uninitialized variables in Search.pm.
This patch deals with that, the same way it is dealt accross the file:
by setting an empty string when things are not defined.

To test:
1. Run:
   $ kshell
  k$ prove t/db_dependent/Search.t
=> FAIL: Wow, too many warnings. Some related to this bug, some not.
2. Apply this patch
3. Repeat 1
=> SUCCESS: No more warnings!
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Search.pm