Im running a system with bric 1.11.1 with multiple sites installed
my autocomplete_categories.html is rev 8288
and I got the error Too many Bric::Biz::Categories found.
After replacing the line
my $parent_cat = Bric::Biz::Category->lookup({ uri =>
$parent_cat_uri });
with
my $parent_cat = Bric::Biz::Category->lookup({ uri =>
$parent_cat_uri, ($site_id ? (site_id => $site_id) : () ) });
it worked well.
Now I've seen that in the svn the current code looks like :
==== snip
if ( FULL_SEARCH ) {
@categories = Bric::Biz::Category->list({
uri => "%" . $new_category_autocomplete . "%",
site_id => $site_id || $story->get_site_id,
});
} else {
my $parent_cat = Bric::Biz::Category->lookup({ uri =>
$parent_cat_uri });
.....
}
===== /snip
checked this out and with FULL_SEARCH disabled the same error
happes again (if you have more than one site ).
So am I missing something or is this a bug ?
Rolf Schaufelberger
rs at plusw.de
my autocomplete_categories.html is rev 8288
and I got the error Too many Bric::Biz::Categories found.
After replacing the line
my $parent_cat = Bric::Biz::Category->lookup({ uri =>
$parent_cat_uri });
with
my $parent_cat = Bric::Biz::Category->lookup({ uri =>
$parent_cat_uri, ($site_id ? (site_id => $site_id) : () ) });
it worked well.
Now I've seen that in the svn the current code looks like :
==== snip
if ( FULL_SEARCH ) {
@categories = Bric::Biz::Category->list({
uri => "%" . $new_category_autocomplete . "%",
site_id => $site_id || $story->get_site_id,
});
} else {
my $parent_cat = Bric::Biz::Category->lookup({ uri =>
$parent_cat_uri });
.....
}
===== /snip
checked this out and with FULL_SEARCH disabled the same error
happes again (if you have more than one site ).
So am I missing something or is this a bug ?
Rolf Schaufelberger
rs at plusw.de