From 32c74ca90011bfa5cfc781ca0879529abb3c5d30 Mon Sep 17 00:00:00 2001 From: "jake%acutex.net" <> Date: Fri, 20 Jul 2001 22:18:25 +0000 Subject: Fix for bugs 55161 and 12819. The activity log now stores only what's changed in multi-value fields. r= justdave@syndicomm.com --- move.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'move.pl') diff --git a/move.pl b/move.pl index 42eb96351..37b8cb7ef 100755 --- a/move.pl +++ b/move.pl @@ -107,12 +107,12 @@ foreach my $id (split(/:/, $::FORM{'buglist'})) { my $fieldid = GetFieldID("bug_status"); my $cur_status= $bug->bug_status; SendSQL("INSERT INTO bugs_activity " . - "(bug_id,who,bug_when,fieldid,oldvalue,newvalue) VALUES " . + "(bug_id,who,bug_when,fieldid,removed,added) VALUES " . "($id,$exporterid,now(),$fieldid,'$cur_status','RESOLVED')"); $fieldid = GetFieldID("resolution"); my $cur_res= $bug->resolution; SendSQL("INSERT INTO bugs_activity " . - "(bug_id,who,bug_when,fieldid,oldvalue,newvalue) VALUES " . + "(bug_id,who,bug_when,fieldid,removed,added) VALUES " . "($id,$exporterid,now(),$fieldid,'$cur_res','MOVED')"); SendSQL("UPDATE bugs SET bug_status =\"RESOLVED\" where bug_id=\"$id\""); -- cgit v1.2.3-24-g4f1b