[fixed - VM203H] - FE product category view HTML warnings

Started by lysov, March 28, 2012, 09:14:40 AM

Previous topic - Next topic

lysov

Hi

With Firefox (ver. 11) HTML code, generated by a default category layout, contains errors:
the url look likes http://www.no-bugs.local/index.php?option=com_virtuemart&view=category&virtuemart_category_id=3514&Itemid=2109&lang=ru
Here is the generated code:
<div class="width30 floatright display-number">...
   <br />
   <select name="" class="inputbox" size="1" onchange="window.top.location.href=this.options[this.selectedIndex].value">>

To remove the extra character &gt; it is sufficient to edit the file administrator/components/com_virtuemart/helpers/vmmodel.php (line 700 of 708)
from
$js = 'onchange="window.top.location.href=this.options[this.selectedIndex].value">';
to
$js = 'onchange="window.top.location.href=this.options[this.selectedIndex].value"';

It remains to draw attention to the warning: <select> attribute "name" lacks value

Best regards.