Bug 13957: If no value, display an empty string instead of "null"
Using the autocomplete feature in the patron search, if one value is missing (i.e. country), it will be replaced with 'null'. The default value should be an empty string. Test plan: 0/ Enable the patron autocomplete feature 1/ Create a patron without value for country, address, zipcode, city 2/ Go on the circ home page 3/ Search for this patron. The country should not have been replaced by "null". Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
9c6bc2543f
commit
0d31fca4f1
1 changed files with 7 additions and 7 deletions
|
@ -71,13 +71,13 @@ my @borrowers;
|
|||
while ( my $b = $borrowers_rs->next ) {
|
||||
push @borrowers,
|
||||
{ borrowernumber => $b->borrowernumber,
|
||||
surname => $b->surname,
|
||||
firstname => $b->firstname,
|
||||
cardnumber => $b->cardnumber,
|
||||
address => $b->address,
|
||||
city => $b->city,
|
||||
zipcode => $b->zipcode,
|
||||
country => $b->country
|
||||
surname => $b->surname // '',
|
||||
firstname => $b->firstname // '',
|
||||
cardnumber => $b->cardnumber // '',
|
||||
address => $b->address // '',
|
||||
city => $b->city // '',
|
||||
zipcode => $b->zipcode // '',
|
||||
country => $b->country // '',
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue