]> git.koha-community.org Git - koha.git/commit
Bug 28483: Remove warnings from Search.t
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 22 Jun 2021 19:41:55 +0000 (16:41 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 16 Jul 2021 13:46:11 +0000 (09:46 -0400)
commit3674ba36235364917925c7fce7aeaa9daa70026b
treed43edd84859934383231d63024ebfc604d2e32d9
parenta7c8a8c35ccb03520393e744c8c9cf306d4cc4c6
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: Kyle M Hall <kyle@bywatersolutions.com>
C4/Search.pm