[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: custom shipping broke with v3.12
****** message to minivend-users from mikeh@minivend.com ******
Quoting Chet Rebman (crebman@cwe.com):
> ****** message to minivend-users from Chet Rebman <crebman@cwe.com> ******
>
>
> I have tracked down the problem to the "test_column" method in package
> "Vend::Table::GDBM" ,if I ignore the results from this test, the custom
> shipping works great. I jumped from minivend version 3.06 which didn't use
> this method. I do not know why test_column is not working and I am still
> looking for the correct fix.
>
Thanks -- the problem probably is that pktotal is your first field
in the database and column_exists returns 0 which fails in Vend/Interpolate.
I thought I had gotten all of those out of there, but obviously there
was one more. Here is a patch:
diff -c lib/Vend/Data.pm nlib/Vend/
*** lib/Vend/Data.pm Sun Mar 21 12:16:22 1999
--- nlib/Vend/Data.pm Fri May 21 03:36:31 1999
***************
*** 426,432 ****
sub column_exists {
my ($field_name) = @_;
! return $Products->test_column($field_name);
}
sub db_column_exists {
--- 426,432 ----
sub column_exists {
my ($field_name) = @_;
! return defined $Products->test_column($field_name);
}
sub db_column_exists {
--
Mike Heins http://www.minivend.com/ ___
Internet Robotics |_ _|____
131 Willow Lane, Floor 2 | || _ \
It's a little-known fact Oxford, OH 45056 | || |_) |
that the Y1K problem caused <mikeh@minivend.com> |___| _ <
the Dark Ages. -- unknown 513.523.7621 FAX 7501 |_| \_\
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list