aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2013-11-15 00:04:15 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2013-11-15 00:04:15 +0100
commit1cf4971f32fe1fffb3919c9a459e92f6a2c0ca02 (patch)
tree979303ba87ce6d061913d478b210b96e3a503124 /process_bug.cgi
parentBug 938161: sql_date_format() method for SQLite has an incorrect default format (diff)
downloadbugzilla-1cf4971f32fe1fffb3919c9a459e92f6a2c0ca02.tar.gz
bugzilla-1cf4971f32fe1fffb3919c9a459e92f6a2c0ca02.tar.bz2
bugzilla-1cf4971f32fe1fffb3919c9a459e92f6a2c0ca02.zip
Bug 927900: Kill longdesclength
r=dkl a=sgreen
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi9
1 files changed, 3 insertions, 6 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index 90e363afa..ed1a19203 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -122,16 +122,14 @@ if ($delta_ts) {
if ($first_delta_tz_z ne $delta_ts_z) {
($vars->{'operations'}) = $first_bug->get_activity(undef, $delta_ts);
- my $start_at = $cgi->param('longdesclength')
- or ThrowCodeError('undefined_field', { field => 'longdesclength' });
-
# Always sort midair collision comments oldest to newest,
# regardless of the user's personal preference.
- my $comments = $first_bug->comments({ order => "oldest_to_newest" });
+ my $comments = $first_bug->comments({ order => 'oldest_to_newest',
+ after => $delta_ts });
# Show midair if previous changes made other than CC
# and/or one or more comments were made
- my $do_midair = scalar @$comments > $start_at ? 1 : 0;
+ my $do_midair = scalar @$comments ? 1 : 0;
if (!$do_midair) {
foreach my $operation (@{ $vars->{'operations'} }) {
@@ -147,7 +145,6 @@ if ($delta_ts) {
if ($do_midair) {
$vars->{'title_tag'} = "mid_air";
- $vars->{'start_at'} = $start_at;
$vars->{'comments'} = $comments;
$vars->{'bug'} = $first_bug;
# The token contains the old delta_ts. We need a new one.