racke / Template-Flute

Template::Flute - Modern designer-friendly HTML templating Engine
Other
11 stars 12 forks source link

multiple forms on page with same input names cause duplicate session data #24

Closed hexfusion closed 10 years ago

hexfusion commented 10 years ago

This example comes from angler6 flypage. Basically even though the forms have different names and only 1 is defined in xml. The session will populate both sku inputs under the review form.

html

<form method="POST" action="cart" name="product">
                  <input type="hidden" name="sku" id="sku" value="">
</form>

<form class="frm-default" name="review" action="/review" method="POST">
              <fieldset>
                  <input type="hidden" name="sku"/>
              </fieldset>
</form>

xml

<specification>
<form name="review" link="name">
<field name="sku"/>
</form>
</specification>

session

form":{"review":{"fields":["sku","sku"]}

racke commented 10 years ago

Fixed in d529ad2.