tedivm / mortar

Automatically exported from code.google.com/p/mortar
0 stars 0 forks source link

Edit Action Fails With Tags Installed When Model Has No Owner #103

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a new Mortar installation
2. Install the Graffiti module.
3. Turn on Tagging for Page models.
4. Attempt to edit one of the default Pages.

What is the expected output? What do you see instead?

Catchable fatal error: Argument 2 passed to GraffitiTagLookUp::getUserTags
() must implement interface Model, boolean given, called in /mortar/
modules/Graffiti/plugins/ModelFormTags.class.php on line 18 and defined 
in /mortar/modules/Graffiti/classes/TagLookUp.class.php on line 119

I'm adding this as an issue because even though one fix is pretty easy 
(just add a check to ModelFormTags) it raises a bigger issue -- shouldn't 
every location have an owner? If not, shouldn't we have some specific 
procedures in place to deal with non-owned locations?

Original issue reported on code.google.com by charlequin@gmail.com on 27 Apr 2010 at 5:19