The error is in the first case clause of the switch statement that appears in the function theme_casetracker_comment_changes($variables), which is in the casetracker.module file.
The code reads:
$new_title = db_select('node', 'n')
->fields('n', array('node'))
->condition('n.nid', $new->pid)
->execute()
->fetchField();
There is no field named 'node', and this results in an exception being thrown (and uncaught).
The above statement needs to be replaced with:
$new_title = db_select('node', 'n')
->fields('n', array('title'))
->condition('n.nid', $new->pid)
->execute()
->fetchField();
Unfortunately I am not equipped to provide you with a patch.
Bob
Comment | File | Size | Author |
---|---|---|---|
#2 | casetracker-fix_col_error-1981194-2.patch | 629 bytes | tanius |
Comments
Comment #1
skyredwangComment #2
tanius CreditAttribution: tanius commentedThe original poster's instructions fixed the issue for me. Patch against latest dev version 7.x-1.0-alpha1+1-dev included. (It's my first patch for Drupal though ...)
Comment #3
tanius CreditAttribution: tanius commentedFor the record, the exact error message that I got with this issue was:
It happened only with some case nodes though, not with all.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedThe patch works excellently. Marking as RTBC.
Comment #6
metzlerd CreditAttribution: metzlerd as a volunteer commentedAlthough the patch was generated from the wrong directory, I manually applied and committed this.
Thanks.