Active
Project:
Image Annotate
Version:
6.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Feb 2010 at 13:20 UTC
Updated:
10 Nov 2011 at 22:00 UTC
I don't know, if it's really the problem, but here's what happened:
In my database-table "node", the "nid" (node-id) and "vid" (version-id for revisions) mostly differ from each other.
Just edit a page and create a new revision should give such ids.
The problem: no annotations are shown on an image on such a page.
The following modification of line 144 in image_annotate.module seems to solve the problem:
original: $element['#node']->vid
modified: $element['#node']->nid
$result = db_query('SELECT i.*, c.uid, c.comment, u.name FROM {image_annotate} i JOIN {comments} c ON i.cid = c.cid JOIN {users} u ON c.uid = u.uid WHERE i.field_name = \'%s\' AND c.nid = %d ORDER BY (i.size_height*i.size_width) ASC', $field['field_name'], $element['#node']->nid);
Comments
Comment #1
ongdesign commentedI can second this... took me quite a while to figure out.
Comment #2
antoh commentedwhen i click on add a note, Save button does not appear.. any ideas?!