Hi!

I am getting empty lines on the group admin page for the list of members. As a result the links to those members are not present.

The issue arises because of the following (taken from <http://nzl.com.ar/~martin/proj_cwa/midgard_doco/manual/en/function164.h tml>)

------------------
Some midgard functions that return traversable objects do not carry all fields
of thos objects.

Bugs in pages due to this problem are usually discovered quickly.

With mgd_list_members, however, there is a particular issue, because one may think that it returns a traversable person object.

The example given may lead to this assumption. But the function returns a traversable object that is a MIX of a membership and person record! In particular (applies to the example), $lst->id is the id of the membership record (and not the person record).

$lst->uid is also taken from the membership record. This integer holds the id of the corresponding person record.

OTOH, $lst->name is taken from the person record.
------------------

With the last sentence being not correct according to my tests.

Analysis: The group admin page does access the rname member from the mgd_list_members result list, which is empty. (line 152 on page#7)

Question:

Should the mgd_list_members function be fixed to return person objects or should the client code expand the persons manually? (I prefer the former!)

I wonder wether this bug shows also in the non-lite version of Midgard.

How is bug fixing done? Do I send fixes to someone with write access to cvs or something?

Greetings,
Dirk


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to