[ic] No ability to upload pictures

Mike Heins mikeh@minivend.com
Mon, 11 Dec 2000 12:15:50 -0500

Quoting Dallas Vogels (dvogels@forestind.com):
> Hello,
> 	I have found the cause of the problem.  When there are no pictures in the
> specified image list widget folder the dropdown combo box, textbox, and
> upload hyperlink do not appear.  Put a file in the folder and it works.  I
> haven't looked at the underlying code however I expect that it is a simple
> matter to fix.

Exactly the info I needed, thanks! I will fix it in 4.6.2 and 4.7.

It was running into the old tag_accessories behavior of not displaying
a widget when there was no data. The fix is to change the lines in 
Vend::Interpolate::tag_accessories which used to say:

    unless ($data || $type =~ /^text|^hidden|^password/i) {
        return '' if $item;
        return '' if $name;
        return qq|<INPUT TYPE="hidden" NAME="mv_order_$attribute" VALUE="">|;


    unless ($data || $type =~ /^text|^hidden|^password|combo/i) {
        return '' if $item;

I will probably add an explicit argument to allow the routines
to force the state, anyway. That routine is due for a major 
overhaul and has been for years.

Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <heins@akopia.com>

Any man who is under 30, and is not liberal, has not heart; and any man
who is over 30, and is not a conservative, has not brains.
 -- Winston Churchill