Deleting a comment causes a crash
infojunkie - October 2, 2007 - 13:46
| Project: | Case Tracker |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | zero2one |
| Status: | closed |
Jump to:
Description
* Install CaseTracker Mail module
* Create a new node of any type
* Delete this node
RESULT: Crash saying "Fatal error: Cannot use object of type stdClass as array in /var/www/tawasol/modules/casetracker/casetracker_mail.module on line 115"
On casetracker_mail.module, changing line 115 from
db_query('DELETE FROM {casetracker_mail} WHERE cid = %d', $comment['cid']);to
db_query('DELETE FROM {casetracker_mail} WHERE cid = %d', $comment->cid);seems to solve the problem.

#1
Is fixed in http://drupal.org/cvs?commit=85845
#2
Automatically closed -- issue fixed for two weeks with no activity.