Active
Project:
Auto Assign Role
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2009 at 04:06 UTC
Updated:
25 Oct 2017 at 21:59 UTC
Jump to comment: Most recent
Paths in 'Per Role Pages' are not released upon deletion.
==== Original issue text below ====
Sorry if this is duplicate. I had not found this bug by search.
The bug is in checking availability of menu path. Look for my patch.
Index: autoassignrole-admin.inc
===================================================================
--- autoassignrole-admin.inc (revision 14428)
+++ autoassignrole-admin.inc (working copy)
@@ -295,7 +295,7 @@
// something other than autoassign_role_path registered
// otherwise throw an error
$menu_item = menu_get_item($path);
- if (!isset($menu_item['page_callback']) && $menu_item['page_callback'] != 'autoassign_role_path') {
+ if (isset($menu_item['page_callback']) && $menu_item['page_callback'] != 'autoassignrole_path') {
form_set_error("path_$rid", '\''. check_plain($path) .'\' '. t('is already in use as a path'));
}
}
P.S. Attachment is not working here.
Comments
Comment #1
doublejosh commentedI've had a tough time with the "MY-X-URL is already in use as a path" with this module. But I did just have some success by clearing my cache. Not sure if this will solve the problem entirely.
For a while I was unable to use a path I have previously used even though it was no longer used.
Comment #2
cyberswat commentedI need someone else to validate this
Comment #3
_toch commentedbzzz's modification works for me.
other workarround: drop the corresponding row in menu_links
Step to reproduce bug:
1/ add a path on tab and submit
2/ change the path to be a menu and submit
3/ try to reset the path on tab and submit
Comment #4
chinita7 commentedI had exactly the same problem and #buzz's could fix it. Thanks.
Comment #5
Michael-IDA commentedSame issue in 7.x
- Create Per Role Pages with path xyz
- Delete Per Role Pages with path xyz
- Try to create Per Role Pages with path xyz
Error message:
- 'xyz' is already in use as a path
Attempted fixes that did not work:
- drush cc all && drush cc all
- Changing the Menu selected.
Comment #6
Michael-IDA commentedComment #7
Michael-IDA commented