bug fixing : modify variable name and delete condition useless now

This commit is contained in:
btoumi 2006-05-24 13:14:04 +00:00
parent 514683074f
commit 83021c9219
1 changed files with 2 additions and 6 deletions

View File

@ -267,7 +267,7 @@ if ($do_it) {
# CGIToPublicationYear => $CGIpublicationyear,
# CGIPublisher => $CGIpublisher,
CGIBranch => $CGIbranch,
CGILocation => $CGIholdingbranch,
CGILocation => $CGIlocation,
CGIextChoice => $CGIextChoice,
CGIsepChoice => $CGIsepChoice
);
@ -506,11 +506,7 @@ sub calculate {
}
if (@$filters[11]){
@$filters[11]=~ s/\*/%/g;
if ($cond){
$strcalc .= " AND items.holdingbranch like '" . @$filters[11] ."'" if ( @$filters[11] );
} else {
$strcalc .= " WHERE items.holdingbranch like '" . @$filters[11] ."'" if ( @$filters[11] );
}
$strcalc .= " AND items.holdingbranch like '" . @$filters[11] ."'" if ( @$filters[11] );
}
$strcalc .= " group by $linefield, $colfield order by $linefield,$colfield";