From 38c7d0766195d9d84fcd81bc23b9c71bff5bea6d Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 5 Aug 2006 05:24:47 +0000 Subject: Bug 305941: Remove profiles.refreshed_when and groups.last_changed - Patch by Frédéric Buclin r=mkanat a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- editgroups.cgi | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'editgroups.cgi') diff --git a/editgroups.cgi b/editgroups.cgi index a7a608694..a26bd0c77 100755 --- a/editgroups.cgi +++ b/editgroups.cgi @@ -289,9 +289,8 @@ if ($action eq 'new') { # Add the new group $dbh->do('INSERT INTO groups - (name, description, isbuggroup, - userregexp, isactive, last_changed) - VALUES (?, ?, 1, ?, ?, NOW())', + (name, description, isbuggroup, userregexp, isactive) + VALUES (?, ?, 1, ?, ?)', undef, ($name, $desc, $regexp, $isactive)); my $gid = $dbh->bz_last_key('groups', 'id'); @@ -566,9 +565,6 @@ if (($action eq 'remove_all_regexp') || ($action eq 'remove_all')) { push(@users, $user); } } - - $dbh->do('UPDATE groups SET last_changed = NOW() - WHERE id = ?', undef, $gid); $dbh->bz_unlock_tables(); $vars->{'users'} = \@users; @@ -711,12 +707,6 @@ sub doGroupChanges { } } - - if ($chgs) { - # mark the changes - $dbh->do('UPDATE groups SET last_changed = NOW() - WHERE id = ?', undef, $gid); - } $dbh->bz_unlock_tables(); return $gid, $chgs, $name, $regexp; } -- cgit v1.2.3-24-g4f1b