Bug 14436: Noisy warns in C4/Utils/DataTables/Members.pm
authorAleisha <aleishaamohia@hotmail.com>
Fri, 10 Jul 2015 14:31:53 +0000 (10:31 -0400)
committerTomas Cohen Arazi <tomascohen@unc.edu.ar>
Mon, 20 Jul 2015 13:13:17 +0000 (10:13 -0300)
TEST PLAN
---------
1) Backup the koha intranet error log.
2) Empty the koha intranet error log.
3) In staff client, go to Patrons
   (/cgi-bin/koha/members/members-home.pl)
4) Pick any letter to 'Browse by last name'
   -- koha intranet error log now has warns.
   -- the one of importance is the uninitalized value.
5) Empty the koha intranet error log.
6) apply this patch
7) Repeat steps 3 & 4.
   -- koha intranet error log does not contain the
      uninitialized value error.
8) run koha qa test tools.

Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
C4/Utils/DataTables/Members.pm

index bad8e9f..cdaa33f 100644 (file)
@@ -17,7 +17,7 @@ sub search {
     my $dt_params = $params->{dt_params};
 
     unless ( $searchmember ) {
-        $searchmember = $dt_params->{sSearch};
+        $searchmember = $dt_params->{sSearch} // '';
     }
 
     my ($iTotalRecords, $iTotalDisplayRecords);