Customer user fields styling and translation gone after update to 2.0.22c

Started by ronaldotto, September 25, 2013, 15:41:30 PM

Previous topic - Next topic

ronaldotto

From b to c

At checkout, when a user edits his innvoice addres the layout of the userfileds is gone.
In edit_address_userfields.php in views > user > tmpl on line 38 is an else loop added wich breaks it.
Copying the version of b fixes it.


// Output: Userfields
foreach($this->userFields['fields'] as $field) {

if($field['type'] == 'delimiter') {

// For Every New Delimiter
// We need to close the previous
// table and delimiter
if($closeDelimiter) { ?>
</table>
</fieldset>
<?php
?>


<fieldset>
<span class="userfields_info"><?php echo $field['title'?></span>

<?php
$closeDelimiter true;
$openTable true;


Has become:

// Output: Userfields
foreach($this->userFields['fields'] as $field) {

if($field['type'] == 'delimiter') {

// For Every New Delimiter
// We need to close the previous
// table and delimiter
if($closeDelimiter) { ?>
</table>
</fieldset>
<?php
} else {
?>

<fieldset>
<span class="userfields_info"><?php echo $field['title'?></span>

<?php
$closeDelimiter true;
$openTable true;
}

and breaks it.

Milbo

Please use E, yepp sry that was a small error and only visible in some templates.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/