[phpldapadmin] [ phpldapadmin-Bugs-2844714 ] Error using 'dn' as attribute key value in template PickList

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.ldap.davedap
Message-ID <[email protected]>
Bugs item #2844714, was opened at 2009-08-25 21:21
Message generated for change (Tracker Item Submitted) made by johnalewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2844714&group_id=61828

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 1.2.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: John A. Lewis (johnalewis)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error using 'dn' as attribute key value in template PickList

Initial Comment:
In building a custom template, I want to use a PickList to select the dn of an object from a set of objects.  Using the follwoing syntax:

<value><![CDATA[=php.PickList(/;(objectClass=groupOfUniqueNames);dn;%cn%)]]></value>

This gives a nasty error.  If I just change PickList to MultiList above it works fine.  But for my objectclass, this is a single value field, so it really should be a PickList.

Here is the Error I am getting in the browser using the PIckList:

Error
E_WARNING: preg_replace() [function.preg-replace]: Parameter mismatch, pattern is a string while replacement is an array
PHP Debug Backtrace
File	/opt/apache2/htdocs/phpldapadmin/lib/functions.php (184)
 	Function	error (a:5:{i:0;s:156:"E_WARNING: preg_replace() [)
File	/opt/apache2/htdocs/phpldapadmin/lib/functions.php ()
 	Function	app_error_handler (a:5:{i:0;i:2;i:1;s:145:"preg_replace() [
 	Function	getDefaultAttribute (a:3:{i:0;O:18:"SelectionAttribute":37:{s:12:"�*�se...)
File	/opt/apache2/htdocs/phpldapadmin/lib/Visitor.php (71)
 	Function	eval
File	/opt/apache2/htdocs/phpldapadmin/lib/Visitor.php ()
 	Function	__call (a:2:{i:0;s:3:"get";i:1;a:4:{i:0;s:7:"Default";i:1;...)
File	/opt/apache2/htdocs/phpldapadmin/lib/TemplateRender.php (72)
 	Function	get (a:4:{i:0;s:7:"Default";i:1;O:18:"SelectionAttribut...)
File	/opt/apache2/htdocs/phpldapadmin/htdocs/template_engine.php (48)
 	Function	accept (a:0:{})
File	/opt/apache2/htdocs/phpldapadmin/htdocs/cmd.php (59)
 	Function	include (a:1:{i:0;s:59:"/opt/apache2/htdocs/phpldapadmin/ht...)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2844714&group_id=61828

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.