Bug 1755 - tag attribute for nested, checked <option>s do not get into SETUP_OPTIONTAGS
Status: RESOLVED FIXED
Alias: None
Product: Loki Setup
Classification: Unclassified
Component: General
Version: unspecified
Hardware: PC Linux
: P2 normal
Assignee: St
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2004-05-28 21:40 EDT by Frederic Krueger
Modified: 2004-05-28 22:10:52 EDT
0 users

See Also:


Attachments
Patch to get the tag=".." infos from nested, checked <option>s, too (458 bytes, patch)
2004-05-28 21:41 EDT, Frederic Krueger

Description Frederic Krueger 2004-05-28 21:40:40 EDT
loki_setup v1.6.1 (current cvs as of 2004-05-29, 03:40 am CET+1)

If you try using a nested <option> structure in your setup.xml, like eg:

<option tag="foo">
  <option tag="bar">
  </option>
</option>
<option tag="baz">
</option>

and select all three checkboxes  you only get "foo baz" in the SETUP_OPTIONTAGS
env variable.

my little fix in optiontag_sub() does a recursive search for child's with
<option tag".."> entries to get those, too.

have fun (or kick my ass for being overly stupid.. depending on whether this
really is a bug.. IMO it is ;-)).
Comment 1 Frederic Krueger 2004-05-28 21:41:33 EDT
Created attachment 389 [details]
Patch to get the tag=".." infos from nested, checked <option>s, too
Comment 2 St 2004-05-28 22:07:52 EDT
OK, this is indeed a bug. I'll apply your patch.
Comment 3 St 2004-05-28 22:10:52 EDT
Applied in CVS.