Closed (fixed)
Project:
Menu Access
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 Oct 2009 at 11:31 UTC
Updated:
25 May 2011 at 18:01 UTC
Jump to comment: Most recent file
If user has access to some menus - he must see only that menus in 'Parent item' setting. Now, user see ALL the menus available in Drupal.
Seems it fixes by this code:
function menu_access_form_alter(&$form, $form_state, $form_id) {
/* original part skipped */
if ($form_id == 'menu_edit_item') {
$item = $form['menu']['#item'];
$form['menu']['parent']['#options'] = menu_parent_options(menu_access_get_menus(), $item);
}
}
Please test it. Thank you.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | menu_access-618828-6.patch | 637 bytes | djac |
Comments
Comment #1
taran2lAlso you need to alter node edit form. Changes:
Comment #2
emptyvoid commentedHmm do you have a patch I can apply and test against?
Comment #3
emptyvoid commentedI am going to conduct testing on the current release and if the issue is confirmed review your change then test.
Comment #4
hydra commentedComment #5
djac commentedAre there any updates with this issue?
It would be nice to get this issue sorted out, especially if the proposed solution above works. If I can help in any way, let me know.
Comment #6
djac commentedI finally had some time to test Taran2l's code above, and it seems to work just fine when editing a node or editing a menu item.
Here's a patch that others can test with. If this does the trick, let's get it committed!
Comment #7
emptyvoid commentedthanks for the patch, as soon as I get my CVS account reactivated I will issue a new release to the dev branch for testing. I have several other patches and feature enhancement that I would like to roll into the next release.
Comment #8
emptyvoid commentedI have committed your patch to the dev branch, please download the test and let me know if it fixes the problem for you. I will roll this into the next release.
Comment #9
emptyvoid commentedComment #10
djac commentedI just tested using the latest dev release and it fixes this issue.
Comment #11
djac commentedFixed in 6.x-1.9.