Remove "attachment already obsolete" error, fix longdesclength argument check

classes
Vitaliy Filippov 2016-01-27 18:14:59 +03:00
parent b8f096bd42
commit 83202248a4
3 changed files with 1 additions and 11 deletions

View File

@ -737,11 +737,6 @@ sub validate_obsolete
ThrowCodeError('mismatched_bug_ids_on_obsolete', $vars);
}
if ($attachment->isobsolete)
{
ThrowCodeError('attachment_already_obsolete', $vars);
}
push(@obsolete_attachments, $attachment);
}
return @obsolete_attachments;

View File

@ -221,7 +221,7 @@ if ($ARGS->{delta_ts})
$vars->{title_tag} = "mid_air";
ThrowCodeError('undefined_field', { field => 'longdesclength' }) if !$ARGS->{longdesclength};
ThrowCodeError('undefined_field', { field => 'longdesclength' }) if !defined $ARGS->{longdesclength};
$vars->{start_at} = $ARGS->{longdesclength};
# Always sort midair collision comments oldest to newest,

View File

@ -65,11 +65,6 @@
of the <em>action</em> variable.
[% END %]
[% BLOCK error_attachment_already_obsolete %]
Attachment #[% attach_id FILTER html %] ([% description FILTER html %])
is already obsolete.
[% END %]
[% BLOCK error_attachment_local_storage_disabled %]
[% title = "Local Storage Disabled" %]
You cannot store attachments locally. This feature is disabled.