[rt-devel] Problem mailing to merged ticket

Matthew D. Stock stock at cse.buffalo.edu
Fri Jan 19 09:16:28 EST 2001


Matthew D. Stock writes:
 > I'm going to try to compose a patch soon.  I think I need to take a look at
 > how the web stuff is displayed when looking at the "effective" ticket and
 > make sure that doesn't have the opposite problem.

Here's my patch to the merge problem:

--- lib/rt/database.pm.orig	Thu Jan 18 22:41:38 2001
+++ lib/rt/database.pm	Thu Jan 18 23:00:32 2001
@@ -198,7 +198,7 @@
     $effective_sn=&normalize_sn($in_serial_num);
     $sth = $dbh->Query("SELECT id, actor, type, trans_data, trans_date, serial_num, effective_sn from transactions WHERE effective_sn = $effective_sn ORDER BY id") or warn "Query had some problem: $Msql::db_errstr\n";
     while (@row=$sth->FetchRow) {
-	&parse_transaction_row($counter, $in_current_user, @row);
+	&parse_transaction_row($counter, $in_current_user, $row[6], @row);
 	$counter++;
     }
     return ($counter);
@@ -212,15 +212,14 @@
     $sth = $dbh->Query($query_string) or return( "Query had some problem: $Mysql::db_errstr\nThe query was $query_string");
     
     while (@row=$sth->FetchRow) {
-	&parse_transaction_row($trans, $in_current_user, @row);
+	&parse_transaction_row($trans, $in_current_user, $row[5], @row);
     }
     return ($trans);
 }
 
 sub parse_transaction_row {
-    my ($in_id, $in_current_user, @row) = @_;
+    my ($in_id, $in_current_user, $serial_num, @row) = @_;
     my ($success,$content,$wday, $mon, $mday, $hour, $min, $sec, $TZ, $year);
-    $serial_num=$row[6];
 
     $rt::req[$serial_num]{'trans'}[$in_id]{'id'}	       	=	$row[0];
     $rt::req[$serial_num]{'trans'}[$in_id]{'serial_num'}		=	$row[5];




More information about the Rt-devel mailing list