Closed (fixed)
Project:
Flag
Version:
6.x-1.1
Component:
Flag core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jun 2009 at 05:28 UTC
Updated:
2 Oct 2009 at 22:40 UTC
Jump to comment: Most recent file
To recreate:
Attached patch:
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | flag_missing_link.patch | 3.29 KB | quicksketch |
| flag_missing_link_type.png | 117.45 KB | pahariwalla | |
| flag_missing_link.patch | 1.19 KB | pahariwalla |
Comments
Comment #1
quicksketchThis looks like a bug caused by another module the failed to revert the link type when it was disables/uninstalled. It seems like the providing module should be responsible for changing the link type back to a link provided by Flag, rather than just stranding the site without a valid link type on its flags.
However I agree it'd be good not to leave the site completely stranded, instead provide something like Views' broken handler functionality.
Comment #2
quicksketchCompletely going back on what I said earlier, I've decided to use the attached patch which actually falls back to the "normal" link if a link type cannot be found. An error is not logged to watchdog, because this could happen many times per page load and completely flood watchdog with redundant errors. An error is presented to the administrator when configuring a flag that has lost its previous flag type.
Comment #3
quicksketchI committed #2, please reopen if there is a bug in the approach, otherwise open a new issue for any functionality changes.