Closed (won't fix)
Project:
Workflow
Version:
7.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2011 at 15:31 UTC
Updated:
28 Mar 2014 at 16:31 UTC
Jump to comment: Most recent
When user role gets deleted, transitions table still contains this role ID which causes an extra table row to appear in permissions fieldset along with PHP notice.
Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| workflow.admin_.inc_.patch | 1.68 KB | evgeny.chernyavskiy |
Comments
Comment #1
johnvD7 contains hook_user_role_delete($role)
Comment #2
johnvThe provided patch corrects the database when the permissions page is shown. But the page may never be called.
ersion 6.x will not be corrected anymore.
I corrected the page in 7.x-2.x with this commit.
Comment #3
johnvTo resolve the root cause, we must take the provided patch, and moved to a new D7-call to hook_user_role_delete($role)
Comment #4
johnvWith the D7-changes in the pages, the reported messages do not appear anymore.
The role is still in the workflow_transitions table, though.
But implementing hook_user_role_delete($role) requires too much code and work to resolve that minor issue. Especially since the role is removed the next time someone hits the transitions config page. (which is implemented the provided patch.)
So, make this a won't fix.
Thanks for reporting, it hinted me to another problem: #2228317: hook_user_role_insert is not called when Admin UI disabled.