Fix bad characters in the price column when importing products into a Shelf. Fixes bug #12001.

This commit is contained in:
Colin Kuskie 2011-01-03 19:11:40 -08:00
parent cb7ffb3a21
commit 67264660f7
4 changed files with 51 additions and 1 deletions

View file

@ -190,6 +190,7 @@ sub importProducts {
my %productRow;
##Order the data according to the headers, in whatever order they exist.
@productRow{ @headers } = @{ $productRow };
$productRow{price} =~ tr/0-9.//cd;
##Isolate just the collateral from the other product information
my %productCollateral;
@productCollateral{ @collateralFields } = @productRow{ @collateralFields };