Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
system.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Dec 2007 at 13:37 UTC
Updated:
1 Jan 2008 at 08:12 UTC
Jump to comment: Most recent file
Comments
Comment #1
Takafumi commentedEncounters WSOD at triggered event when orphaned trigger remains. For this reason, this issue is critical.
Comment #2
gábor hojtsyI can reproduce this issue. The problem is that when you remove an advanced action, it is not deassigned first from all triggers. This results in these interesting admin and delete confirm pages as attached.
Comment #3
gábor hojtsyWhy does this happen?
- When you delete an action, system_actions_delete_form_submit() is invoked.
- This invokes actions_delete($aid), which deletes the action.
- actions_delete($aid) also does a module_invoke_all('actions_delete', $aid); call, which is supposed to be used by modules to react on the deletion
- trigger module does not implement this hook, but it should implement it to remove all trigger associations for this action as well
That's our problem.
Comment #4
gábor hojtsyPatch cooked, tested, works for me.
Comment #5
gábor hojtsyNote that aid is a varchar column, so we need to use this string check. It is not a usual integer ID.
Comment #6
Takafumi commentedGreat, a patch works properly.
Comment #7
gábor hojtsyCommitted, thanks for testing.
Comment #8
Takafumi commentedthanks.