News:

Support the VirtueMart project and become a member

Main Menu

Something strange with permission settings

Started by lostika86, February 01, 2015, 16:34:31 PM

Previous topic - Next topic

lostika86

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 ..

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

hetclub

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?