I'm having a problem where if i go in to edit a comment, the title field (in the case information fieldset) is blank. (This is not the case when submitting a comment, just editing). So I retype the title of the node in the comment form, but when i submit, the title of the node disappears (ie is set to null or something). I have to edit the node to reestablish the title.

The problem also seems to have spread to the case when i submit a comment. Although the title is preloaded into the field, when i submit it, the nodes title disappears also.

...

I've realised that for my application, i dont actually want people changing the cases title with comments (it's something that only the case's creator should be able to do). I would really appreciate it if you could could help me out a little in removing the title changing feature from the comments... i've tried deleting all references to in in the hook_comment, but its still somehow there because my titles are still dissapearing when i post a comment.

Thankyou
-S

Comments

morbus iff’s picture

Are you able to duplicate this on a fresh and unchanged install of Drupal 4.7 and Case Tracker?

reqIUm’s picture

I wouldn't be able to reproduce it on fresh install, because i've realised that the problem is surfacing when i have 2 concurrent (distinct) installs of casetracker (But i should stress having "2 casetrackers" is definitely not the problem, they otherwise work fine together - ie independantly of one another).

I think the actual problem is a bug that I have found (on a fresh unmodified single install of casetracker and drupal), where the "old » new" title change leaks onto comments of nodes that are not associated with casetracker cases. For example when i post a forum comment, im getting the title change box that says "Title: WhateverIhadbefore » ". Ie its setting it to NULL. (because of course there isn't a "Task Information:" form on these comments).

(Im sure this bug is causing a crossover between my concurrent installs that shouldn't otherwise be talking)

I have looked into the database and noticed that:

1). Nodes not assiciated with cases are going into the "tasktracker_comment_status" table
2). Comments of nodes not associated with cases are going into the "tasktracker_comment" table

morbus iff’s picture

And you're definitely using the release version from December 19th? Prior to that version, there WAS an issue where the comment crap was happening on every node, but I fixed that before the release. Or thought I did.

morbus iff’s picture

Status: Active » Closed (won't fix)

I've fixed a small bug (in DRUPAL-5.x) that would potentially cause the old/new matrix to show up on nodes (nodeapi 'view') that are not Case Tracker related, but am unable to replicate creation (nodeapi 'insert' or 'update') of erroneous comment data on incorrect nodes. Both release versions of Case Tracker return immediately in hook_comment() if the node is not a Case Tracker case.