The default project is arg(3) and it is set by $node->tid which is always 0. It should be $node->nid.

cvs diff: Diffing .
Index: casetracker.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/casetracker/casetracker.module,v
retrieving revision 1.43
diff -u -r1.43 casetracker.module
--- casetracker.module  3 May 2006 14:09:30 -0000       1.43
+++ casetracker.module  3 May 2006 15:14:20 -0000
@@ -335,7 +335,7 @@
         else {
           $link = 'project/cases/'.$node->nid;
         }    
-     $rows[] = array('data' => array($node->project_no, l(t($node->title),/*'project/cases/'.$node->nid*/ $link),date('m/d/Y-h:i',$node->last_comment_timestamp),l(t('Edit'), 'node/'.$node->nid), l(t('Add case to this project'), 'node/add/casetracker_case/'.$node->tid)));
+     $rows[] = array('data' => array($node->project_no, l(t($node->title),/*'project/cases/'.$node->nid*/ $link),date('m/d/Y-h:i',$node->last_comment_timestamp),l(t('Edit'), 'node/'.$node->nid), l(t('Add case to this project'), 'node/add/casetracker_case/'.$node->nid)));
   }
   if(count($rows)==0) {
     $output = t('You have no projects');
@@ -2303,4 +2303,4 @@
   }
   print drupal_to_js($matches);
   exit();
-}
\ No newline at end of file
+}

Comments

sanjeev gupta’s picture

Status: Reviewed & tested by the community » Fixed

Now you can see the default project selected when you click on add a case to this project.

Anonymous’s picture

Status: Fixed » Closed (fixed)