[solved] Bug on function getLayoutList() and solution

Started by Studio 42, February 03, 2011, 21:46:02 PM

Previous topic - Next topic

Studio 42

in Public beta1.
Bug or mistake in use of Jtext line 61 in
Quoteadministrator\components\com_virtuemart\models\config.php
replace
$result[] = JHTML::_('select.option', $file, JText::_(str_replace('.php', '', $file)));
with
$result[] = JHTML::_('select.option', $file, str_replace('.php', '', $file));

It's only buggy when you are not in English language !!!

In french defaut is set to défaut. Because the é cant be a correct letter. All access to défaut.php are converted to dfaut.php and virtuemart can't find this files.

This bug is visible in all productdetails and category views, when you set it to defaut and seva it(only in  foreign language ).


Sorry for my poor english ;)

Milbo

Thank you. Please post the locations of the files where you get the bug (because I dont have it :-)), I will fix it then asap.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Studio 42

Hi,
You have only this bug on UTF-8 foreign language, not in english.
Try to change the category layout in admin and go to same category on front and se the result. The view defaut is not found because of JText use.
You can try in front
index.php?option=com_virtuemart&view=category&category_id=1
after you change the category_browsepage or category_flypage  in
administrator/index.php?option=com_virtuemart&view=category&task=edit&cid[]=1

Milbo

Interesting, I just found out that I fixed that alreay on the way fixing something different lol.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/