Commit 7b043a40 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 298196: process_bug.cgi updates delta_ts even when no modifications are made…

Bug 298196: process_bug.cgi updates delta_ts even when no modifications are made - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
parent b0dd1758
...@@ -1444,9 +1444,8 @@ foreach my $id (@idlist) { ...@@ -1444,9 +1444,8 @@ foreach my $id (@idlist) {
while (MoreSQLData()) { while (MoreSQLData()) {
push(@list, FetchOneColumn()); push(@list, FetchOneColumn());
} }
SendSQL("UPDATE bugs SET delta_ts = $sql_timestamp, keywords = " . $dbh->do("UPDATE bugs SET keywords = ? WHERE bug_id = ?",
SqlQuote(join(', ', @list)) . undef, join(', ', @list), $id);
" WHERE bug_id = $id");
} }
} }
my $query = "$basequery\nwhere bug_id = $id"; my $query = "$basequery\nwhere bug_id = $id";
...@@ -1735,7 +1734,7 @@ foreach my $id (@idlist) { ...@@ -1735,7 +1734,7 @@ foreach my $id (@idlist) {
$i = 0; $i = 0;
foreach my $col (@::log_columns) { foreach my $col (@::log_columns) {
# Consider NULL db entries to be equivalent to the empty string # Consider NULL db entries to be equivalent to the empty string
$newvalues[$i] ||= ''; $newvalues[$i] = defined($newvalues[$i]) ? $newvalues[$i] : '';
# Convert the deadline to the YYYY-MM-DD format. # Convert the deadline to the YYYY-MM-DD format.
if ($col eq 'deadline') { if ($col eq 'deadline') {
$newvalues[$i] = format_time($newvalues[$i], "%Y-%m-%d"); $newvalues[$i] = format_time($newvalues[$i], "%Y-%m-%d");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment