matrix compare screen bugfix

This commit is contained in:
Yung Han Khoe 2008-12-12 16:36:19 +00:00
parent 80d7ac6ae1
commit ba24497686
2 changed files with 12 additions and 2 deletions

View file

@ -1060,7 +1060,12 @@ sub www_getCompareListData {
) });
}
foreach my $result (@results){
unless($result->{fieldType} eq 'category'){
if($result->{fieldType} eq 'category'){
foreach my $columnDef (@columnDefs) {
$result->{$columnDef->{key}} = $columnDef->{label};
}
}
else{
foreach my $listingId (@listingIds) {
$result->{attributeId} =~ s/-/_____/g;
my $listingId_safe = $listingId;