--- lib/A3C/View.pm 2008/05/15 19:07:38 119 +++ lib/A3C/View.pm 2008/05/15 19:08:08 120 @@ -13,13 +13,13 @@ h1 { _('Statistics') } - my $orgs = A3C::Model::OrganizationCollection->new; + my $orgs = A3C::Model::hrEduOrgCollection->new; $orgs->unlimit; dt { _('Number of schools in system') } dd { $orgs->count } - my $people = A3C::Model::PersonCollection->new; + my $people = A3C::Model::hrEduPersonCollection->new; $people->unlimit; dt { _('Number of persons in system') } @@ -27,7 +27,7 @@ my $by_towns = A3C::SQL->new({ query => qq{ select count(uid),l - from organizations + from hr_edu_orgs inner join towns on towns.name = l group by l order by count desc @@ -48,7 +48,7 @@ count(uid) as schools, county, count(distinct municipality) as municipalities - from organizations + from hr_edu_orgs inner join towns on towns.name = l group by county order by schools desc