? project_issue.install.abandonded
? views_foo
? includes/admin.issue_status.inc.abandoned
? includes/comment.inc.abandoned
? views/project_issue.views.inc.somechangesdiscarded
? views/handlers/project_issue_handler_field_history_project_issue_user_timestamp.inc
? views/handlers/project_issue_handler_filter_history_project_issue_user_timestamp.inc
? views/handlers/project_issue_handler_filter_issue_status.inc.abandonedmods
Index: project_issue.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/project_issue.install,v
retrieving revision 1.64
diff -u -p -r1.64 project_issue.install
--- project_issue.install	21 Aug 2009 22:51:31 -0000	1.64
+++ project_issue.install	4 Feb 2010 06:49:24 -0000
@@ -149,6 +149,12 @@ function project_issue_schema() {
         'not null' => TRUE,
         'default' => 0,
       ),
+      'changed' => array(
+        'description' => 'The Unix timestamp when the issue was most recently updated.',
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 0,
+      ),
       'db_lock' => array(
         'description' => 'Row-lock indicator to prevent race conditions when determining sequential comment number (http://drupal.org/node/180866).',
         'type' => 'int',
@@ -161,6 +167,7 @@ function project_issue_schema() {
       'project_issues_pid' => array('pid'),
       'project_issues_sid' => array('sid'),
       'project_issues_nid_assigned' => array('nid', 'assigned'),
+      'project_issues_pid_changed' => array('pid', 'changed'),
     ),
     'primary key' => array('nid'),
   );
@@ -446,3 +453,23 @@ function project_issue_update_6002() {
   return $ret;
 }
 
+/**
+ * Add {project_issues}.changed to *significantly* speed up issue queues.
+ */
+function project_issue_update_6003() {
+  $ret = array();
+
+  // Create 'changed' column to speed up sorting.
+  db_add_field($ret, 'project_issues', 'changed',
+  array(
+    'type' => 'int',
+    'not null' => TRUE,
+    'default' => 0,
+  ));
+  db_query('UPDATE {project_issues} p, {node_comment_statistics} s SET p.changed = s.last_comment_timestamp WHERE p.nid = s.nid');
+
+  // This will drastically increase issue queue performance.
+  db_add_index($ret, 'project_issues', 'project_issues_pid_changed', array('pid', 'changed'));
+
+  return $ret;
+}
Index: includes/comment.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/includes/comment.inc,v
retrieving revision 1.156
diff -u -p -r1.156 comment.inc
--- includes/comment.inc	17 Jan 2010 00:26:58 -0000	1.156
+++ includes/comment.inc	4 Feb 2010 06:49:24 -0000
@@ -571,7 +571,7 @@ function project_issue_update_by_comment
   $comment_data = project_issue_get_newest_comment($comment_data);
 
   // Update the issue data to reflect the new final states.
-  db_query("UPDATE {project_issues} SET pid = %d, category = '%s', component = '%s', priority = %d, rid = %d, assigned = %d, sid = %d WHERE nid = %d", $comment_data->pid, $comment_data->category, $comment_data->component, $comment_data->priority, $comment_data->rid, $comment_data->assigned, $comment_data->sid, $comment_data->nid);
+  db_query("UPDATE {project_issues} SET pid = %d, category = '%s', component = '%s', priority = %d, rid = %d, assigned = %d, sid = %d, changed = %d WHERE nid = %d", $comment_data->pid, $comment_data->category, $comment_data->component, $comment_data->priority, $comment_data->rid, $comment_data->assigned, $comment_data->sid, $comment_data->timestamp, $comment_data->nid);
 
   // Update the issue title.
   $node = node_load($comment_data->nid, NULL, TRUE);  // Don't use cached since we changed data above.
Index: includes/issue_node_form.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/includes/issue_node_form.inc,v
retrieving revision 1.5
diff -u -p -r1.5 issue_node_form.inc
--- includes/issue_node_form.inc	8 Oct 2009 23:36:16 -0000	1.5
+++ includes/issue_node_form.inc	4 Feb 2010 06:49:24 -0000
@@ -474,11 +474,9 @@ function _project_issue_insert($node) {
     }
     $original_issue_data->$field = $node->$field;
   }
-
-  db_query("INSERT INTO {project_issues} (nid, pid, category, component, priority, rid, assigned, sid, original_issue_data, last_comment_id, db_lock) VALUES (%d, %d, '%s', '%s', %d, %d, %d, %d, '%s', %d, %d)", $node->nid, $node->pid, $node->category, $node->component, $node->priority, $node->rid, $node->assigned, $node->sid, serialize($original_issue_data), 0, 0);
+  db_query("INSERT INTO {project_issues} (nid, pid, category, component, priority, rid, assigned, sid, original_issue_data, last_comment_id, changed, db_lock) VALUES (%d, %d, '%s', '%s', %d, %d, %d, %d, '%s', %d, %d, %d)", $node->nid, $node->pid, $node->category, $node->component, $node->priority, $node->rid, $node->assigned, $node->sid, serialize($original_issue_data), 0, $node->changed, 0);
 
   // Invalidate the "Issue cockpit" block cache for this project, since the
   // new issue will have altered the summary totals.
   cache_clear_all('project_issue_cockpit_block:'. $node->pid, 'cache');
 }
-
Index: views/project_issue.views.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/views/project_issue.views.inc,v
retrieving revision 1.9
diff -u -p -r1.9 project_issue.views.inc
--- views/project_issue.views.inc	18 Jun 2009 03:48:53 -0000	1.9
+++ views/project_issue.views.inc	4 Feb 2010 06:49:24 -0000
@@ -178,6 +178,22 @@ function project_issue_views_data() {
       'handler' => 'views_handler_argument_numeric',
     ),
   );
+
+  $data['project_issues']['changed'] = array(
+    'title' => t('Last update time'),
+    'help' => t('Date and time of when the issue was last updated.'),
+    'field' => array(
+      'handler' => 'views_handler_field_date',
+      'click sortable' => TRUE,
+    ),
+    'sort' => array(
+      'handler' => 'views_handler_sort_date',
+    ),
+    'filter' => array(
+      'handler' => 'views_handler_filter_date',
+    ),
+  );
+
   return $data;
 }
 
@@ -255,4 +271,3 @@ function project_issue_views_plugins() {
     ),
   );
 }
-
Index: views/default_views/project_issue_all_projects.view.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/views/default_views/project_issue_all_projects.view.php,v
retrieving revision 1.1
diff -u -p -r1.1 project_issue_all_projects.view.php
--- views/default_views/project_issue_all_projects.view.php	18 Jun 2009 03:38:43 -0000	1.1
+++ views/default_views/project_issue_all_projects.view.php	4 Feb 2010 06:49:24 -0000
@@ -120,14 +120,14 @@ $fields = array(
     'field' => 'new_comments',
     'relationship' => 'none',
   ),
-  'last_comment_timestamp' => array(
+  'changed' => array(
     'label' => 'Last updated',
     'date_format' => 'raw time ago',
     'custom_date_format' => '',
     'exclude' => 0,
-    'id' => 'last_comment_timestamp',
-    'table' => 'node_comment_statistics',
-    'field' => 'last_comment_timestamp',
+    'id' => 'changed',
+    'table' => 'project_issues',
+    'field' => 'changed',
     'relationship' => 'none',
   ),
   'name' => array(
@@ -152,7 +152,7 @@ if (module_exists('search')) {
     'separator' => ',',
     'prefix' => '',
     'suffix' => '',
-    'alternate_sort' => 'last_comment_timestamp',
+    'alternate_sort' => 'changed',
     'alternate_order' => 'desc',
     'exclude' => 0,
     'id' => 'score',
@@ -162,12 +162,12 @@ if (module_exists('search')) {
   );
 }
 $handler->override_option('fields', $fields);
-$sorts['last_comment_timestamp'] = array(
+$sorts['changed'] = array(
   'order' => 'DESC',
   'granularity' => 'second',
-  'id' => 'last_comment_timestamp',
-  'table' => 'node_comment_statistics',
-  'field' => 'last_comment_timestamp',
+  'id' => 'changed',
+  'table' => 'project_issues',
+  'field' => 'changed',
   'relationship' => 'none',
 );
 if (module_exists('search')) {
@@ -326,7 +326,7 @@ $handler->override_option('style_options
     'category' => 'category',
     'comment_count' => 'comment_count',
     'new_comments' => 'comment_count',
-    'last_comment_timestamp' => 'last_comment_timestamp',
+    'changed' => 'changed',
     'name' => 'name',
     'score' => 'score',
   ),
@@ -361,7 +361,7 @@ $handler->override_option('style_options
     'new_comments' => array(
       'separator' => '',
     ),
-    'last_comment_timestamp' => array(
+    'changed' => array(
       'sortable' => 1,
       'separator' => '',
     ),
@@ -374,7 +374,7 @@ $handler->override_option('style_options
       'separator' => '',
     ),
   ),
-  'default' => module_exists('search') ? 'score' : 'last_comment_timestamp',
+  'default' => module_exists('search') ? 'score' : 'changed',
 ));
 $handler = $view->new_display('page', 'Page', 'page_1');
 $handler->override_option('path', 'project/issues');
@@ -393,12 +393,12 @@ $handler->override_option('tab_options',
 ));
 $handler = $view->new_display('feed', 'Feed', 'feed_1');
 $handler->override_option('sorts', array(
-  'last_comment_timestamp' => array(
+  'changed' => array(
     'order' => 'DESC',
     'granularity' => 'second',
-    'id' => 'last_comment_timestamp',
-    'table' => 'node_comment_statistics',
-    'field' => 'last_comment_timestamp',
+    'id' => 'changed',
+    'table' => 'project_issues',
+    'field' => 'changed',
     'override' => array(
       'button' => 'Use default',
     ),
Index: views/default_views/project_issue_project.view.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/views/default_views/project_issue_project.view.php,v
retrieving revision 1.1
diff -u -p -r1.1 project_issue_project.view.php
--- views/default_views/project_issue_project.view.php	18 Jun 2009 03:38:43 -0000	1.1
+++ views/default_views/project_issue_project.view.php	4 Feb 2010 06:49:24 -0000
@@ -122,14 +122,14 @@ $fields = array(
     'field' => 'new_comments',
     'relationship' => 'none',
   ),
-  'last_comment_timestamp' => array(
+  'changed' => array(
     'label' => 'Last updated',
     'date_format' => 'raw time ago',
     'custom_date_format' => '',
     'exclude' => 0,
-    'id' => 'last_comment_timestamp',
-    'table' => 'node_comment_statistics',
-    'field' => 'last_comment_timestamp',
+    'id' => 'changed',
+    'table' => 'project_issues',
+    'field' => 'changed',
     'relationship' => 'none',
   ),
   'name' => array(
@@ -154,7 +154,7 @@ if (module_exists('search')) {
     'separator' => ',',
     'prefix' => '',
     'suffix' => '',
-    'alternate_sort' => 'last_comment_timestamp',
+    'alternate_sort' => 'changed',
     'alternate_order' => 'desc',
     'exclude' => 0,
     'id' => 'score',
@@ -188,12 +188,12 @@ $handler->override_option('arguments', a
     'default_argument_php' => '',
   ),
 ));
-$sorts['last_comment_timestamp'] = array(
+$sorts['changed'] = array(
   'order' => 'DESC',
   'granularity' => 'second',
-  'id' => 'last_comment_timestamp',
-  'table' => 'node_comment_statistics',
-  'field' => 'last_comment_timestamp',
+  'id' => 'changed',
+  'table' => 'project_issues',
+  'field' => 'changed',
   'relationship' => 'none',
 );
 if (module_exists('search')) {
@@ -370,7 +370,7 @@ $handler->override_option('style_options
     'component' => 'component',
     'comment_count' => 'comment_count',
     'new_comments' => 'comment_count',
-    'last_comment_timestamp' => 'last_comment_timestamp',
+    'changed' => 'changed',
     'name' => 'name',
     'score' => 'score',
   ),
@@ -409,7 +409,7 @@ $handler->override_option('style_options
     'new_comments' => array(
       'separator' => '',
     ),
-    'last_comment_timestamp' => array(
+    'changed' => array(
       'sortable' => 1,
       'separator' => '',
     ),
@@ -422,7 +422,7 @@ $handler->override_option('style_options
       'separator' => '',
     ),
   ),
-  'default' => module_exists('search') ? 'score' : 'last_comment_timestamp',
+  'default' => module_exists('search') ? 'score' : 'changed',
 ));
 $handler = $view->new_display('page', 'Page', 'page_1');
 $handler->override_option('path', 'project/issues/%');
@@ -441,12 +441,12 @@ $handler->override_option('tab_options',
 ));
 $handler = $view->new_display('feed', 'Feed', 'feed_1');
 $handler->override_option('sorts', array(
-  'last_comment_timestamp' => array(
+  'changed' => array(
     'order' => 'DESC',
     'granularity' => 'second',
-    'id' => 'last_comment_timestamp',
-    'table' => 'node_comment_statistics',
-    'field' => 'last_comment_timestamp',
+    'id' => 'changed',
+    'table' => 'project_issues',
+    'field' => 'changed',
     'override' => array(
       'button' => 'Use default',
     ),
@@ -508,12 +508,12 @@ $handler->override_option('fields', arra
   ),
 ));
 $handler->override_option('sorts', array(
-  'last_comment_timestamp' => array(
+  'changed' => array(
     'order' => 'DESC',
     'granularity' => 'second',
-    'id' => 'last_comment_timestamp',
-    'table' => 'node_comment_statistics',
-    'field' => 'last_comment_timestamp',
+    'id' => 'changed',
+    'table' => 'project_issues',
+    'field' => 'changed',
     'relationship' => 'none',
   ),
 ));
@@ -578,4 +578,3 @@ $handler->override_option('row_options',
 ));
 $handler->override_option('block_description', 'Project: recent issues');
 $handler->override_option('block_caching', -1);
-
Index: views/default_views/project_issue_search_all.view.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/views/default_views/project_issue_search_all.view.php,v
retrieving revision 1.1
diff -u -p -r1.1 project_issue_search_all.view.php
--- views/default_views/project_issue_search_all.view.php	18 Jun 2009 03:38:43 -0000	1.1
+++ views/default_views/project_issue_search_all.view.php	4 Feb 2010 06:49:24 -0000
@@ -129,14 +129,14 @@ $fields = array(
     'field' => 'new_comments',
     'relationship' => 'none',
   ),
-  'last_comment_timestamp' => array(
+  'changed' => array(
     'label' => 'Last updated',
     'date_format' => 'raw time ago',
     'custom_date_format' => '',
     'exclude' => 0,
-    'id' => 'last_comment_timestamp',
-    'table' => 'node_comment_statistics',
-    'field' => 'last_comment_timestamp',
+    'id' => 'changed',
+    'table' => 'project_issues',
+    'field' => 'changed',
     'relationship' => 'none',
   ),
   'name' => array(
@@ -161,7 +161,7 @@ if (module_exists('search')) {
     'separator' => ',',
     'prefix' => '',
     'suffix' => '',
-    'alternate_sort' => 'last_comment_timestamp',
+    'alternate_sort' => 'changed',
     'alternate_order' => 'desc',
     'exclude' => 0,
     'id' => 'score',
@@ -171,12 +171,12 @@ if (module_exists('search')) {
   );
 }
 $handler->override_option('fields', $fields);
-$sorts['last_comment_timestamp'] = array(
+$sorts['changed'] = array(
   'order' => 'DESC',
   'granularity' => 'second',
-  'id' => 'last_comment_timestamp',
-  'table' => 'node_comment_statistics',
-  'field' => 'last_comment_timestamp',
+  'id' => 'changed',
+  'table' => 'project_issues',
+  'field' => 'changed',
   'relationship' => 'none',
 );
 if (module_exists('search')) {
@@ -392,7 +392,7 @@ $handler->override_option('style_options
     'version' => 'version',
     'comment_count' => 'comment_count',
     'new_comments' => 'comment_count',
-    'last_comment_timestamp' => 'last_comment_timestamp',
+    'changed' => 'changed',
     'name' => 'name',
     'score' => 'score',
   ),
@@ -431,7 +431,7 @@ $handler->override_option('style_options
     'new_comments' => array(
       'separator' => '',
     ),
-    'last_comment_timestamp' => array(
+    'changed' => array(
       'sortable' => 1,
       'separator' => '',
     ),
@@ -444,7 +444,7 @@ $handler->override_option('style_options
       'separator' => '',
     ),
   ),
-  'default' => module_exists('search') ? 'score' : 'last_comment_timestamp',
+  'default' => module_exists('search') ? 'score' : 'changed',
 ));
 $handler = $view->new_display('page', 'Page', 'page_1');
 $handler->override_option('path', 'project/issues/search');
@@ -463,12 +463,12 @@ $handler->override_option('tab_options',
 ));
 $handler = $view->new_display('feed', 'Feed', 'feed_1');
 $handler->override_option('sorts', array(
-  'last_comment_timestamp' => array(
+  'changed' => array(
     'order' => 'DESC',
     'granularity' => 'second',
-    'id' => 'last_comment_timestamp',
-    'table' => 'node_comment_statistics',
-    'field' => 'last_comment_timestamp',
+    'id' => 'changed',
+    'table' => 'project_issues',
+    'field' => 'changed',
     'override' => array(
       'button' => 'Use default',
     ),
@@ -500,4 +500,3 @@ $handler->override_option('displays', ar
   'default' => 0,
 ));
 $handler->override_option('sitename_title', FALSE);
-
Index: views/default_views/project_issue_search_project.view.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/views/default_views/project_issue_search_project.view.php,v
retrieving revision 1.1
diff -u -p -r1.1 project_issue_search_project.view.php
--- views/default_views/project_issue_search_project.view.php	18 Jun 2009 03:38:43 -0000	1.1
+++ views/default_views/project_issue_search_project.view.php	4 Feb 2010 06:49:24 -0000
@@ -129,14 +129,14 @@ $fields = array(
     'field' => 'new_comments',
     'relationship' => 'none',
   ),
-  'last_comment_timestamp' => array(
+  'changed' => array(
     'label' => 'Last updated',
     'date_format' => 'raw time ago',
     'custom_date_format' => '',
     'exclude' => 0,
-    'id' => 'last_comment_timestamp',
-    'table' => 'node_comment_statistics',
-    'field' => 'last_comment_timestamp',
+    'id' => 'changed',
+    'table' => 'project_issues',
+    'field' => 'changed',
     'relationship' => 'none',
   ),
   'name' => array(
@@ -161,7 +161,7 @@ if (module_exists('search')) {
     'separator' => ',',
     'prefix' => '',
     'suffix' => '',
-    'alternate_sort' => 'last_comment_timestamp',
+    'alternate_sort' => 'changed',
     'alternate_order' => 'desc',
     'exclude' => 0,
     'id' => 'score',
@@ -208,12 +208,12 @@ $handler->override_option('arguments', a
     'validate_argument_php' => '',
   ),
 ));
-$sorts['last_comment_timestamp'] = array(
+$sorts['changed'] = array(
   'order' => 'DESC',
   'granularity' => 'second',
-  'id' => 'last_comment_timestamp',
-  'table' => 'node_comment_statistics',
-  'field' => 'last_comment_timestamp',
+  'id' => 'changed',
+  'table' => 'project_issues',
+  'field' => 'changed',
   'relationship' => 'none',
 );
 if (module_exists('search')) {
@@ -446,7 +446,7 @@ $handler->override_option('style_options
     'component' => 'component',
     'comment_count' => 'comment_count',
     'new_comments' => 'comment_count',
-    'last_comment_timestamp' => 'last_comment_timestamp',
+    'changed' => 'changed',
     'name' => 'name',
     'score' => 'score',
   ),
@@ -485,7 +485,7 @@ $handler->override_option('style_options
     'new_comments' => array(
       'separator' => '',
     ),
-    'last_comment_timestamp' => array(
+    'changed' => array(
       'sortable' => 1,
       'separator' => '',
     ),
@@ -498,7 +498,7 @@ $handler->override_option('style_options
       'separator' => '',
     ),
   ),
-  'default' => module_exists('search') ? 'score' : 'last_comment_timestamp',
+  'default' => module_exists('search') ? 'score' : 'changed',
 ));
 $handler = $view->new_display('page', 'Page', 'page_1');
 $handler->override_option('path', 'project/issues/search/%');
@@ -517,12 +517,12 @@ $handler->override_option('tab_options',
 ));
 $handler = $view->new_display('feed', 'Feed', 'feed_1');
 $handler->override_option('sorts', array(
-  'last_comment_timestamp' => array(
+  'changed' => array(
     'order' => 'DESC',
     'granularity' => 'second',
-    'id' => 'last_comment_timestamp',
-    'table' => 'node_comment_statistics',
-    'field' => 'last_comment_timestamp',
+    'id' => 'changed',
+    'table' => 'project_issues',
+    'field' => 'changed',
     'override' => array(
       'button' => 'Use default',
     ),
@@ -554,4 +554,3 @@ $handler->override_option('displays', ar
   'default' => 0,
 ));
 $handler->override_option('sitename_title', FALSE);
-
Index: views/default_views/project_issue_user_issues.view.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/views/default_views/project_issue_user_issues.view.php,v
retrieving revision 1.1
diff -u -p -r1.1 project_issue_user_issues.view.php
--- views/default_views/project_issue_user_issues.view.php	18 Jun 2009 03:38:43 -0000	1.1
+++ views/default_views/project_issue_user_issues.view.php	4 Feb 2010 06:49:24 -0000
@@ -129,14 +129,14 @@ $fields = array(
     'field' => 'new_comments',
     'relationship' => 'none',
   ),
-  'last_comment_timestamp' => array(
+  'changed' => array(
     'label' => 'Last updated',
     'date_format' => 'raw time ago',
     'custom_date_format' => '',
     'exclude' => 0,
-    'id' => 'last_comment_timestamp',
-    'table' => 'node_comment_statistics',
-    'field' => 'last_comment_timestamp',
+    'id' => 'changed',
+    'table' => 'project_issues',
+    'field' => 'changed',
     'relationship' => 'none',
   ),
   'name' => array(
@@ -161,7 +161,7 @@ if (module_exists('search')) {
     'separator' => ',',
     'prefix' => '',
     'suffix' => '',
-    'alternate_sort' => 'last_comment_timestamp',
+    'alternate_sort' => 'changed',
     'alternate_order' => 'desc',
     'exclude' => 0,
     'id' => 'score',
@@ -196,12 +196,12 @@ $handler->override_option('arguments', a
     'validate_user_roles' => array('2' => 2),
   ),
 ));
-$sorts['last_comment_timestamp'] = array(
+$sorts['changed'] = array(
   'order' => 'DESC',
   'granularity' => 'second',
-  'id' => 'last_comment_timestamp',
-  'table' => 'node_comment_statistics',
-  'field' => 'last_comment_timestamp',
+  'id' => 'changed',
+  'table' => 'project_issues',
+  'field' => 'changed',
   'relationship' => 'none',
 );
 if (module_exists('search')) {
@@ -362,7 +362,7 @@ $handler->override_option('style_options
     'version' => 'version',
     'comment_count' => 'comment_count',
     'new_comments' => 'comment_count',
-    'last_comment_timestamp' => 'last_comment_timestamp',
+    'changed' => 'changed',
     'name' => 'name',
     'score' => 'score',
   ),
@@ -401,7 +401,7 @@ $handler->override_option('style_options
     'new_comments' => array(
       'separator' => '',
     ),
-    'last_comment_timestamp' => array(
+    'changed' => array(
       'sortable' => 1,
       'separator' => '',
     ),
@@ -414,7 +414,7 @@ $handler->override_option('style_options
       'separator' => '',
     ),
   ),
-  'default' => module_exists('search') ? 'score' : 'last_comment_timestamp',
+  'default' => module_exists('search') ? 'score' : 'changed',
 ));
 $handler = $view->new_display('page', 'Page', 'page_1');
 $handler->override_option('path', 'project/issues/user');
@@ -457,4 +457,3 @@ $handler->override_option('displays', ar
   'default' => 0,
 ));
 $handler->override_option('sitename_title', FALSE);
-
Index: views/default_views/project_issue_user_projects.view.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/views/default_views/project_issue_user_projects.view.php,v
retrieving revision 1.1
diff -u -p -r1.1 project_issue_user_projects.view.php
--- views/default_views/project_issue_user_projects.view.php	18 Jun 2009 03:38:43 -0000	1.1
+++ views/default_views/project_issue_user_projects.view.php	4 Feb 2010 06:49:24 -0000
@@ -129,14 +129,14 @@ $fields = array(
     'field' => 'new_comments',
     'relationship' => 'none',
   ),
-  'last_comment_timestamp' => array(
+  'changed' => array(
     'label' => 'Last updated',
     'date_format' => 'raw time ago',
     'custom_date_format' => '',
     'exclude' => 0,
-    'id' => 'last_comment_timestamp',
-    'table' => 'node_comment_statistics',
-    'field' => 'last_comment_timestamp',
+    'id' => 'changed',
+    'table' => 'project_issues',
+    'field' => 'changed',
     'relationship' => 'none',
   ),
   'name' => array(
@@ -161,7 +161,7 @@ if (module_exists('search')) {
     'separator' => ',',
     'prefix' => '',
     'suffix' => '',
-    'alternate_sort' => 'last_comment_timestamp',
+    'alternate_sort' => 'changed',
     'alternate_order' => 'desc',
     'exclude' => 0,
     'id' => 'score',
@@ -171,12 +171,12 @@ if (module_exists('search')) {
   );
 }
 $handler->override_option('fields', $fields);
-$sorts['last_comment_timestamp'] = array(
+$sorts['changed'] = array(
   'order' => 'DESC',
   'granularity' => 'second',
-  'id' => 'last_comment_timestamp',
-  'table' => 'node_comment_statistics',
-  'field' => 'last_comment_timestamp',
+  'id' => 'changed',
+  'table' => 'project_issues',
+  'field' => 'changed',
   'relationship' => 'none',
 );
 if (module_exists('search')) {
@@ -363,7 +363,7 @@ $handler->override_option('style_options
     'version' => 'version',
     'comment_count' => 'comment_count',
     'new_comments' => 'comment_count',
-    'last_comment_timestamp' => 'last_comment_timestamp',
+    'changed' => 'changed',
     'name' => 'name',
     'score' => 'score',
   ),
@@ -402,7 +402,7 @@ $handler->override_option('style_options
     'new_comments' => array(
       'separator' => '',
     ),
-    'last_comment_timestamp' => array(
+    'changed' => array(
       'sortable' => 1,
       'separator' => '',
     ),
@@ -415,7 +415,7 @@ $handler->override_option('style_options
       'separator' => '',
     ),
   ),
-  'default' => module_exists('search') ? 'score' : 'last_comment_timestamp',
+  'default' => module_exists('search') ? 'score' : 'changed',
 ));
 $handler = $view->new_display('page', 'Page', 'page_1');
 $handler->override_option('path', 'project/user');
@@ -461,4 +461,3 @@ $handler->override_option('displays', ar
   'default' => 0,
 ));
 $handler->override_option('sitename_title', FALSE);
-
