[phpldapadmin] [ phpldapadmin-Bugs-3294924 ] Template Selects dosen't work properly

"SourceForge.net" <[email protected]> Fri, 29 Apr 2011 13:50:05 +0000
Newsgroups gmane.comp.ldap.davedap
Message-ID <[email protected]>
Bugs item #3294924, was opened at 2011-04-29 15:50
Message generated for change (Tracker Item Submitted) made by stefanklatt
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=3294924&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Stefan Klatt (stefanklatt)
Assigned to: Nobody/Anonymous (nobody)
Summary: Template Selects dosen't work properly

Initial Comment:
phpLDAPadmin 1.2.0.5, openldap 2.4.25, php 5.3.3, apache 2.2.15, openSuse 11.3

Hi,

I use selects for boolean and string attributes.

First for boolean attributes (EXFilterOut):

<attribute id="EXFilterOut">
        <value>true</value>
        <value>false</value>
</attribute>

Gives "true, false, true, false" with default "true" to select.

<attribute id="EXFilterOut">
        <display>Ausgehende Email</display>
</attribute>

Gives "true, false" with a empty default to select.

<attribute id="EXFilterOut">
        <display>Ausgehende Email</display>
        <default>true</default>
</attribute>

Gives "true, false, true" with default true to select.

<attribute id="EXFilterOut">
        <type>select</type>
        <value>true</value>
        <value>false</value>
</attribute>

I  get "true, false" with default "true" to select.

<attribute id="EXFilterOut">
        <type>select</type>
        <value>true</value>
        <value>false</value>
        <default>false</default>
</attribute>

I  get "true, false" with default "true" to select.

Second with strings (EXFilterType) the following happens:

<attribute id="EXFilterTyp">
        <value>Subject</value>
        <value>Subject-begins</value>
        <value>Subject-fix</value>
        <value>Subject-ends</value>
</attribute>

I get four text fields, each filled with one of the values. And an error if at saving this template (that's correct, four text fields instead one!)

<attribute id="EXFilterTyp">
        <type>select</type>
        <value>Subject</value>
        <value>Subject-begins</value>
        <value>Subject-fix</value>
        <value>Subject-ends</value>
        <default>Subject-begins</default>
</attribute>

Gives al values to select and "Subject" as default.

<attribute id="EXFilterTyp">
        <type>select</type>
        <value>Subject</value>
        <value>Subject-begins</value>
        <value>Subject-fix</value>
        <value>Subject-ends</value>
</attribute>

Gives al values to select and "Subject" as default.

I think there are a few logical failures. phpLDAPadmin 1.0.0.2 handle all correct without using HTML type "select". 
With 1.2.0.5 it works only "correct" if I use HTML type "select", but Defaults are ignored.

Stefan

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

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

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/