PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm_advmultiselect » Bug #6745

Button won't appear

Details

Submitted2006-02-10 13:30 UTC
Fromsnowkrash at xs4all dot nl
StatusBogus
PackageHTML_QuickForm_advmultiselect
PHP Version5.0.5
OSWindows / Linux
Roadmaps(Not assigned)

Comments

[2006-02-10 13:30 UTC] snowkrash at xs4all dot nl

Description:
------------
In my AMS construction where the buttons add, remove, all, none and toggle are put in a template, the last does not show when rendered (Smarty).

Test script:
---------------
Some constants are used to fill in text for display (start with an underscore).

http://82.170.95.241/testsites/fav/beheer_kortingCheque.phps

Expected result:
----------------
I expect all buttons to be shown.

Actual result:
--------------
Every button for AMS is shown except the toggle.

[2006-02-11 08:36 UTC] snowkrash at xs4all dot nl

Oops, I forgot about that! I was logged in all day and I was getting ready for the weekend, spiritually ;-)

here it is:

http://www.fav.fr/lalala/beheer_kortingCheque.phps

[2006-02-14 06:32 UTC] snowkrash at xs4all dot nl

Hi,

You can see the template source at:
http://www.fav.fr/lalala/beheer_kortingCheque.tpl.html

I did some experimenting myself by emptying the AMS template first and adding the elements one by one from the bottom up (see the phps).
1. Only the {toggle} button: it displays
2. Adding the {none} button: both show
3. Adding the {all} button: all three show
4. Adding {remove}: {remove} does not show, only empty <tr>
5. Adding first <tr> with {add}, {selected}, {unselected}
-> {remove} comes up, {toggle} disappears} ?????
6. Removing {unselected} brings up {toggle}, but removes
{add} and {remove}. Of course a lot of checkboxes
appear. removing {add} of {selected} changes just that,
no surprises there.

BTW: I use PHP 5.0.5 (not 5.0.2) on my local machine (WinXP) and 4.4.1 on the server (UNIX). On both machines the Smarty versions ans AMS versions are the same. On both machines the effect is shown.

[2006-02-14 10:37 UTC] snowkrash at xs4all dot nl

Ahhhh .....

Will there be a toggle button available in the future for the double multiselects? I think it will be a good feature.

Thank you for taking the time investigating.