merge in a missing change required for NotifyAboutLowStock

This commit is contained in:
Colin Kuskie 2008-09-28 23:33:41 +00:00
parent 5d3fc505cc
commit 1c2993dd86

View file

@ -1111,9 +1111,14 @@ while (my $product = $productIterator->()) {
sub getIsa {
my $class = shift;
my $session = shift;
my $offset = shift;
my $def = $class->definition($session);
my $tableName = $def->[0]->{tableName};
my $sth = $session->db->read("select distinct(assetId) from $tableName");
my $sql = "select distinct(assetId) from $tableName";
if (defined $offset) {
$sql .= ' LIMIT '. $offset . ',1234567890';
}
my $sth = $session->db->read($sql);
return sub {
my ($assetId) = $sth->array;
if (!$assetId) {
@ -1409,6 +1414,8 @@ Name value pairs to add to the URL in the form of:
=cut
=cut
sub getUrl {
my $self = shift;
my $params = shift;