[ic] item-options with closing options tag
Joshua Lavin
joshua at kingdomdesign.com
Wed Feb 16 16:27:37 EST 2005
When using the item-options tag in the flypage, e.g. [item-options td=1
label=1 bold=1 price=1], I noticed that the resulting HTML does not
have a closing option tag (</option>).
This patch to {IC ROOT}/lib/Vend/Form.pm will add a closing </option>
to the options dropdown.
*** Form.pm.orig Sun Feb 22 13:28:37 2004
--- Form.pm Wed Feb 16 15:19:09 2005
***************
*** 747,752 ****
--- 747,753 ----
$run .= $limit->($value);
$run .= $extra;
}
+ $run .= "</option>";
}
$run .= "</optgroup>" if $optgroup_one++;
$run .= attr_list($Template{selecttail}, $opt);
Hopefully, I'm not breaking anything. :-)
--
Josh Lavin
Kingdom Design http://www.kingdomdesign.com/
More information about the interchange-users
mailing list