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
Comment #1
sanjeev gupta commentedNow you can see the default project selected when you click on add a case to this project.
Comment #2
(not verified) commented