Ran into an oddity with "Groups of names" in LAM Pro 4.5. When I enable
the "Groups of names" account type, lam generates blocks of code like
the following for each of the members (I added line breaks to improve
clarity):
<br>
<a href="../account/edit.php?type=gon&DN='
<a
href="../account/edit.php?type=user&DN='uid=streif,ou=People,ou=REDCap,ou=Applications,dc=smphit,dc=wisc,dc=edu'">streif
> People > REDCap > Applications > smphit > wisc > edu
</a>'">
<a href="../account/edit.php?type=user&DN='uid=streif > People >
REDCap > Applications > smphit > wisc > edu'">streif > People > REDCap >
Applications > smphit > wisc > edu
</a>
</a>
Looks like the code in types/gon.inc is processing each entry multiple
times and creating some really confused html. Not quite sure what was
intended there, but it works much better for me if I modify the code so
it only processes a single entry once. i.e.
>diff gon.inc.orig gon.inc.new
257c257
< if (!isAccountTypeHidden($type)) {
---
> if (!isAccountTypeHidden($type) && !$replaced) {
Then the html produced looks like the following:
<br>
<a
href="../account/edit.php?type=user&DN='uid=streif,ou=People,ou=REDCap,ou=Applications,dc=smphit,dc=wisc,dc=edu'">streif
> People > REDCap > Applications > smphit > wisc > edu
</a>
Could either this (or a more appropriate patch) be added to the code?
Thanks,
--
Vince Streif
SMPH Information Technology
Univ of Wisconsin - Madison
4276 Health Sciences Learning Center
750 Highland Avenue
Madison, WI 53705
[email protected]
608-262-7230
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Lam-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lam-public