[phpldapadmin] [ phpldapadmin-Bugs-1917527 ] validate_xxx not defined if xxx is a hidden field

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.ldap.davedap
Message-ID <[email protected]>
Bugs item #1917527, was opened at 2008-03-18 11:19
Message generated for change (Comment added) made by wurley
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=1917527&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: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Jehan Bing (nahor)
Assigned to: Nobody/Anonymous (nobody)
Summary: validate_xxx not defined if xxx is a hidden field

Initial Comment:
I have a hidden attribute whose value is set by another field:

<attribute id="givenName">
        <display>First name</display>
        <icon>images/uid.png</icon>
        <onchange>autoFill:displayName,%givenName% %sn%</onchange>
        <onchange>autoFill:gecos,%givenName% %sn%</onchange>
        <order>1</order>
        <page>1</page>
</attribute>
[...]
<attribute id="displayName">
        <hidden>1</hidden>
        <value></value>
</attribute>

When I change the value of "givenName", I get a JS error:
  validate_displayName is not defined
Then any following <onchange> are ignored (in my example, the "autofill:gecos")


If "displayName" is not hidden, it works fine.


phpLDAPadmin 1.1.0.5
openLDAP 2.3.41
apache 2.2.8
php 5.2.6_rc1-r1
gentoo

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

>Comment By: Deon George (wurley)
Date: 2008-11-28 19:00

Message:
I've just submitted a fix to CVS for this (in BRANCH-1_1_0)

lib/EntryWriter1.php 1.3.2.17

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

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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
______________________________________
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.