News:

Support the VirtueMart project and become a member

Main Menu

[FIXED - TRACKER 1914] close fieldset tag in ps_userfield.php

Started by unithom, March 19, 2008, 21:14:57 PM

Previous topic - Next topic

unithom

I noticed when trying to validate the HTML from the 'please login or register' page that there is a fieldset which is not being closed when all of the registration fields are output by the listUserFields function in ps_userfield.php.

The issue still exists in revision 1319.

I solved this by finding the following section of code (the end of the " foreach( $rowFields as $field) {" block):

    if( $field->description != '') {
    echo vmToolTip( $field->description );
    }
    echo '<br /></div>
      <br style="clear:both;" />';
   }
   echo '</div>';
   if( VM_REGISTRATION_TYPE == 'OPTIONAL_REGISTRATION') {
    echo '<script type="text/javascript">
   function showFields( show, fields ) {
    if( fields ) {

* * * and added:


    if( $field->description != '') {
    echo vmToolTip( $field->description );
}
    echo '<br /></div>
      <br style="clear:both;" />';
}
        if( $delimiter > 0) {
echo "</fieldset>\n";
    }

echo '</div>';
if( VM_REGISTRATION_TYPE == 'OPTIONAL_REGISTRATION') {
    echo '<script type="text/javascript">
   function showFields( show, fields ) {
    if( fields ) {