[ic] Bugfix for Cart.pm, MaxQuantityField prefix
josh at perusion.net
Mon May 2 16:40:45 UTC 2011
I discovered a bug in Cart.pm, when using prefixes in MaxQuantity field.
A setting such as:
MaxQuantityField inventory:quantity, ?inventory:max_order
would not work as expected according to the docs, but would ignore the
prefix, and add the columns.
The patch is simple (the problem is the substitution caused prefix to be
set to a '1', not the actual prefix):
- my ($prefix) = $tab =~ s/^([=\?])//;
- $prefix ||= '';
+ $tab =~ s/^([=\?])//;
+ my $prefix = $1 || '';
Perusion -- Expert Interchange Consulting http://www.perusion.com/
More information about the interchange-users