On Fri, 16 Mar 2007, Ashlee Caul wrote:
> Hi Scott,
>
> I am using some of your code here
>
> http://marc.info/?l=bricolage-general&m=1
16669657808300&w=2
>
> to get a list of all the contribs in my Bric, but I
keep getting the error
> "Can't call method "get_id" on an
undefined value at
>
/usr/local/bricolage/lib/Bric/Util/Grp/Parts/Member/Contrib.
pm line 634,
> <GEN17> line 1399." Any thoughts? I am
trying to get a list of all the
> contribs in the system.
>
> Template code:
>
> my ($CO_CONTRIB_GRP) = Bric::Util::Grp->list({ name
=> 'Authors', all => 1
> });
> my contribs =
Bric::Util::Grp::Parts::Member::Contrib->list({ grp =>
> $CO_CONTRIB_GRP });
I think it means your Grp->list didn't return anything.
($CO_CONTRIB_GRP is undef.)
Probably you think 'Authors' is a "group" such as
you find in
ADMIN -> SYSTEM -> Groups. Hohoho, silly you, it's in
Contributor Types.
(I assume it's still called "Contributor Types"
after 1.8.)
No, I don't understand it, either.
|