summaryrefslogtreecommitdiffstats
path: root/bug_form.pl
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-05-26 04:22:30 +0200
committerterry%mozilla.org <>1999-05-26 04:22:30 +0200
commit6c926fc14f987a047f1db3a793556f98f271b9f2 (patch)
tree18181945805bf9950e31800de3cfee19472d1fd1 /bug_form.pl
parent124da23d3fe33a23826f590528901ca3b05e7b13 (diff)
downloadbugzilla-6c926fc14f987a047f1db3a793556f98f271b9f2.tar.gz
bugzilla-6c926fc14f987a047f1db3a793556f98f271b9f2.tar.xz
Avoid mid-air collisions (implementing a suggestion by
py8ieh=bugzilla@bath.ac.uk).
Diffstat (limited to 'bug_form.pl')
-rw-r--r--bug_form.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/bug_form.pl b/bug_form.pl
index 14ec779a6..1c9ecb1e0 100644
--- a/bug_form.pl
+++ b/bug_form.pl
@@ -126,7 +126,8 @@ select
qa_contact,
status_whiteboard,
date_format(creation_ts,'Y-m-d'),
- groupset
+ groupset,
+ delta_ts
from bugs
where bug_id = $::FORM{'id'}
and bugs.groupset & $::usergroupset = bugs.groupset";
@@ -141,7 +142,7 @@ if (@row = FetchSQLData()) {
"bug_severity", "component", "assigned_to", "reporter",
"bug_file_loc", "short_desc", "target_milestone",
"qa_contact", "status_whiteboard", "creation_ts",
- "groupset") {
+ "groupset", "delta_ts") {
$bug{$field} = shift @row;
if (!defined $bug{$field}) {
$bug{$field} = "";
@@ -172,6 +173,7 @@ if (@row = FetchSQLData()) {
$bug{'assigned_to'} = DBID_to_name($bug{'assigned_to'});
$bug{'reporter'} = DBID_to_name($bug{'reporter'});
$bug{'long_desc'} = GetLongDescription($::FORM{'id'});
+my $longdesclength = length($bug{'long_desc'});
GetVersionTable();
@@ -206,6 +208,8 @@ print "
<HEAD><TITLE>Bug $::FORM{'id'} -- " . html_quote($bug{'short_desc'}) .
"</TITLE></HEAD><BODY>
<FORM NAME=changeform METHOD=POST ACTION=\"process_bug.cgi\">
+<INPUT TYPE=HIDDEN NAME=\"delta_ts\" VALUE=\"$bug{'delta_ts'}\">
+<INPUT TYPE=HIDDEN NAME=\"longdesclength\" VALUE=\"$longdesclength\">
<INPUT TYPE=HIDDEN NAME=\"id\" VALUE=$::FORM{'id'}>
<INPUT TYPE=HIDDEN NAME=\"was_assigned_to\" VALUE=\"$bug{'assigned_to'}\">
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR>