Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
1a7dfa3a
Commit
1a7dfa3a
authored
Oct 20, 2001
by
jake%acutex.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 71840 - Make comments referenceable using a #c4 to get the fourth comment.
Patch by Gerv <gerv@mozilla.org> and Myself. r= jake@acutex.net, gerv@mozilla.org, justdave@syndicomm.com
parent
16c15e52
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
10 deletions
+24
-10
bug_form.pl
bug_form.pl
+3
-3
globals.pl
globals.pl
+21
-7
No files found.
bug_form.pl
View file @
1a7dfa3a
...
@@ -569,11 +569,11 @@ if ( Param("move-enabled") && (defined $::COOKIE{"Bugzilla_login"}) && ($::COOKI
...
@@ -569,11 +569,11 @@ if ( Param("move-enabled") && (defined $::COOKIE{"Bugzilla_login"}) && ($::COOKI
print
"<BR></FORM>"
;
print
"<BR></FORM>"
;
print
"
print
qq|
<table><tr><td align=left><B>
Description:
</B></td>
<table><tr><td align=left><B>
<a name="0" href="#c0">Description:</a>
</B></td>
<td align=right width=100%>Opened: $bug{'creation_ts'}</td></tr></table>
<td align=right width=100%>Opened: $bug{'creation_ts'}</td></tr></table>
<HR>
<HR>
"
;
|
;
print
$bug
{
'long_desc'
};
print
$bug
{
'long_desc'
};
print
"
print
"
<HR>\n"
;
<HR>\n"
;
...
...
globals.pl
View file @
1a7dfa3a
...
@@ -891,6 +891,22 @@ sub quoteUrls {
...
@@ -891,6 +891,22 @@ sub quoteUrls {
$things
[
$count
++
]
=
$item
;
$things
[
$count
++
]
=
$item
;
}
}
# Either a comment string or no comma and a compulsory #.
while
(
$text
=~
s/\bbug(\s|%\#)*(\d+),?\s*comment\s*(\s|%\#)(\d+)/"##$count##"/ei
)
{
my
$item
=
$&
;
my
$bugnum
=
$2
;
my
$comnum
=
$4
;
$item
=
GetBugLink
(
$bugnum
,
$item
);
$item
=~
s/(id=\d+)/$1#c$comnum/
;
$things
[
$count
++
]
=
$item
;
}
while
(
$text
=~
s/\bcomment(\s|%\#)*(\d+)/"##$count##"/ei
)
{
my
$item
=
$&
;
my
$num
=
$2
;
$item
=
value_quote
(
$item
);
$item
=
qq{<A HREF="#c$num">$item</A>}
;
$things
[
$count
++
]
=
$item
;
}
while
(
$text
=~
s/\bbug(\s|%\#)*(\d+)/"##$count##"/ei
)
{
while
(
$text
=~
s/\bbug(\s|%\#)*(\d+)/"##$count##"/ei
)
{
my
$item
=
$&
;
my
$item
=
$&
;
my
$num
=
$2
;
my
$num
=
$2
;
...
@@ -1047,16 +1063,14 @@ sub GetLongDescriptionAsHTML {
...
@@ -1047,16 +1063,14 @@ sub GetLongDescriptionAsHTML {
my
(
$who
,
$email
,
$when
,
$text
)
=
(
FetchSQLData
());
my
(
$who
,
$email
,
$when
,
$text
)
=
(
FetchSQLData
());
$email
.=
Param
(
'emailsuffix'
);
$email
.=
Param
(
'emailsuffix'
);
if
(
$count
)
{
if
(
$count
)
{
$result
.=
"<BR><BR><I>------- Additional Comments From "
;
$result
.=
qq|<BR><BR><I>------- Additional Comment <a name="c$count" href="#c$count">#$count</a> From |
;
if
(
$who
)
{
if
(
$who
)
{
$result
.=
qq{<A HREF="mailto:$email">$who</A> }
.
$result
.=
qq{<A HREF="mailto:$email">$who</A> }
;
time2str
(
"%Y-%m-%d %H:%M"
,
str2time
(
$when
))
.
" -------</I><BR>\n"
;
}
else
{
}
else
{
$result
.=
qq{<A HREF="mailto:$email">$email</A> }
.
$result
.=
qq{<A HREF="mailto:$email">$email</A> }
;
time2str
(
"%Y-%m-%d %H:%M"
,
str2time
(
$when
))
.
" -------</I><BR>\n"
;
}
}
$result
.=
time2str
(
"%Y-%m-%d %H:%M"
,
str2time
(
$when
))
.
" -------</I><BR>\n"
;
}
}
$result
.=
"<PRE>"
.
quoteUrls
(
\%
knownattachments
,
$text
)
.
"</PRE>\n"
;
$result
.=
"<PRE>"
.
quoteUrls
(
\%
knownattachments
,
$text
)
.
"</PRE>\n"
;
$count
++
;
$count
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment