Remove "attachment already obsolete" error, fix longdesclength argument check
parent
b8f096bd42
commit
83202248a4
|
@ -737,11 +737,6 @@ sub validate_obsolete
|
||||||
ThrowCodeError('mismatched_bug_ids_on_obsolete', $vars);
|
ThrowCodeError('mismatched_bug_ids_on_obsolete', $vars);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($attachment->isobsolete)
|
|
||||||
{
|
|
||||||
ThrowCodeError('attachment_already_obsolete', $vars);
|
|
||||||
}
|
|
||||||
|
|
||||||
push(@obsolete_attachments, $attachment);
|
push(@obsolete_attachments, $attachment);
|
||||||
}
|
}
|
||||||
return @obsolete_attachments;
|
return @obsolete_attachments;
|
||||||
|
|
|
@ -221,7 +221,7 @@ if ($ARGS->{delta_ts})
|
||||||
|
|
||||||
$vars->{title_tag} = "mid_air";
|
$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};
|
$vars->{start_at} = $ARGS->{longdesclength};
|
||||||
# Always sort midair collision comments oldest to newest,
|
# Always sort midair collision comments oldest to newest,
|
||||||
|
|
|
@ -65,11 +65,6 @@
|
||||||
of the <em>action</em> variable.
|
of the <em>action</em> variable.
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
[% BLOCK error_attachment_already_obsolete %]
|
|
||||||
Attachment #[% attach_id FILTER html %] ([% description FILTER html %])
|
|
||||||
is already obsolete.
|
|
||||||
[% END %]
|
|
||||||
|
|
||||||
[% BLOCK error_attachment_local_storage_disabled %]
|
[% BLOCK error_attachment_local_storage_disabled %]
|
||||||
[% title = "Local Storage Disabled" %]
|
[% title = "Local Storage Disabled" %]
|
||||||
You cannot store attachments locally. This feature is disabled.
|
You cannot store attachments locally. This feature is disabled.
|
||||||
|
|
Loading…
Reference in New Issue