VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: lostika86 on February 01, 2015, 16:34:31 PM

Title: Something strange with permission settings
Post by: lostika86 on February 01, 2015, 16:34:31 PM
I just noticed that if you click on VM -> permissions, the Permissions config tab is shown, but no Save,Save and Close atc are shown.
The most strangest thing, if you go to the VM permissions from the Joomla Permission menu (left side), buttons are OK, but you cant change permission for newly added group. If you click for example the Administrator group, the changes are made for Guest group. It looks like that left side tabs doesnt change active state correctly (check the html code).
- The console is clear, no JS error msg.
- tryied browsers IE10+, Chrome
Joomla Joomla! 3.3.6
VM 3.0.4
---------------------------------------------
UPDATE:
I noticed that "permission-sliders" are counted incorretly
\administrator\components\com_virtuemart\fields\vmrules.php at line 122.
change
$html[] = '<div id="permission-'.$section.'-'.$per++.'" class="tab-pane '.$active.'">';
to
$html[] = '<div id="permission-'.$section.'-'.$perlevel.'" class="tab-pane '.$active.'">';

Maybe it helps for someone too.

By the way every control group contains id="permissions-sliders" :/ Im not professional, but I think this needs some attention ..
Title: Re: Something strange with permission settings
Post by: Milbo on February 01, 2015, 22:01:33 PM
Thx
Title: Re: Something strange with permission settings
Post by: hetclub on February 05, 2015, 02:31:50 AM
Yes thanks, Milbo passed your vmrules.php fix on to me and it corrected the problem.  There is also a problem with the Permissions click button in the configuration screen.

It takes you to:
<button class="btn btn-small" onclick="location.href='index.php?option=com_config&view=component&component=com_virtuemart&tmpl=component';">
but when I change the button code to:
<button class="btn btn-small" onclick="location.href='index.php?option=com_config&view=component&component=com_virtuemart';">

it works just fine.  Where is that code for the button stored?