| Project: | Upload Image |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Say, for example, you have a vocab called Tags which is associated with your Blog Entry content type - however its NOT associated with the Image content type.
Now, create a blog entry and attach an image to it in file attachments using this module. You notice that the new image node is tagged with the tags from the blog entry, even though the image type is not associated with that vocab.
In itself - this isn't a MASSIVE problem until you come to submit the node again. You get several MySQL errors appear - this is likely due to the fact that this node doesn't have the "tags" vocab associated with it - however it currently has terms from that vocab associated with it.
I don't currently have time to submit a patch for this - but I imagine it should be easy enough to fix - the error is on line 185 (v1.17.2.2) and reads:
<?php
$image->taxonomy = $node->taxonomy;
?>You cant just throw the node's taxonomy at the image's taxonomy - you need to check vocab "permissions" first.