First round of temp patches to allow EMS to handle very large events.

This commit is contained in:
Roy Johnson 2006-04-26 21:41:54 +00:00
parent 477ae9243f
commit 987719b1c1
2 changed files with 4 additions and 3 deletions

View file

@ -2900,8 +2900,9 @@ sub view {
from products as p, EventManagementSystem_products as e
where
p.productId = e.productId and approved=1
and e.assetId =".$self->session->db->quote($self->get("assetId"))."
and p.productId not in (select distinct(productId) from EventManagementSystem_prerequisites) order by sequenceNumber";
and e.assetId =".$self->session->db->quote($self->get("assetId"))."
and p.prerequisiteId is NULL";
#and p.productId not in (select distinct(productId) from EventManagementSystem_prerequisites) order by sequenceNumber";
my $p = WebGUI::Paginator->new($self->session,$self->getUrl,$self->get("paginateAfter"));
$p->setDataByQuery($sql);