Closed (fixed)
Project:
Flag
Version:
7.x-2.0-beta6
Component:
Rules integration
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
23 Feb 2012 at 09:52 UTC
Updated:
14 Dec 2018 at 07:29 UTC
Jump to comment: Most recent file
Comments
Comment #1
joachim commentedThanks for the patch.
Needs tweaking for code style -- should be FALSE and needs space around the operator.
Needs review from some Rules users too!
Comment #2
pavlosdanHi,
I'm using Flag with Rules as well but I cannot replicate this issue. I have Flag 7.x-2.0-beta6 and Rules 7.x-2.1 installed on my site.
Steps I took to try to replicate were:
- Deleted a Flag that was stored in code (features). I was still able to access the Rules UI.
- Added a new Flag and created a Rule with a Flag event (content flagged) and actions to Display a Message on the site and Trim the Flag.
The only errors I got when I deleted the flag were on the Rules UI
Looked again... the error is happening when you try to edit the Rule that uses the deleted flag so only the interface relevant to the deleted flag is affected.
Applying the patch fixes the issue and allows you to edit the affected rule to remove the event and edit the action that are associated with the removed flag.
Comment #3
pavlosdanHere's the same patch as above with the changes joachim suggested.
Patch made against the code in branch 7.x-2.x from git.
Comment #4
pavlosdanForgot to set the status. Sorry.
Comment #5
joachim commentedThat's perfect, thanks!
Committed.
Issue #1451730 by pavlos_dan, Shnapoo: Fixed fatal PHP error in Rules administration after deleting a flag.