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
bc84c5a4
Commit
bc84c5a4
authored
Feb 24, 2007
by
lpsolit%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 371286: Ignore deleted flags - Patch by FrÃ
©
dÃ
©
ric Buclin <LpSolit@gmail.com> r=myk a=LpSolit
parent
fa306daf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
Flag.pm
Bugzilla/Flag.pm
+6
-4
code-error.html.tmpl
template/en/default/global/code-error.html.tmpl
+0
-3
No files found.
Bugzilla/Flag.pm
View file @
bc84c5a4
...
...
@@ -317,9 +317,10 @@ sub validate {
# Don't bother validating types the user didn't touch.
next
if
$status
eq
'X'
;
# Make sure the flag type exists.
# Make sure the flag type exists. If it doesn't, FormToNewFlags()
# will ignore it, so it's safe to ignore it here.
my
$flag_type
=
new
Bugzilla::
FlagType
(
$id
);
$flag_type
||
ThrowCodeError
(
'flag_type_nonexistent'
,
{
id
=>
$id
})
;
next
unless
$flag_type
;
# Make sure the flag type is active.
unless
(
$flag_type
->
is_active
)
{
...
...
@@ -336,9 +337,10 @@ sub validate {
my
@requestees
=
$cgi
->
param
(
"requestee-$id"
);
my
$private_attachment
=
$cgi
->
param
(
'isprivate'
)
?
1
:
0
;
# Make sure the flag exists.
# Make sure the flag exists. If it doesn't, process() will ignore it,
# so it's safe to ignore it here.
my
$flag
=
new
Bugzilla::
Flag
(
$id
);
$flag
||
ThrowCodeError
(
"flag_nonexistent"
,
{
id
=>
$id
})
;
next
unless
$flag
;
_validate
(
$flag
,
$flag
->
type
,
$status
,
undef
,
\
@requestees
,
$private_attachment
,
undef
,
undef
,
$skip_requestee_on_error
);
...
...
template/en/default/global/code-error.html.tmpl
View file @
bc84c5a4
...
...
@@ -218,9 +218,6 @@
is attached to [% terms.bug %] [%+ attach_bug_id FILTER html %],
but you tried to flag it as obsolete while creating a new attachment to
[% terms.bug %] [%+ my_bug_id FILTER html %].
[% ELSIF error == "flag_nonexistent" %]
There is no flag with ID #[% id FILTER html %].
[% ELSIF error == "flags_not_available" %]
[% title = "Flag Editing not Allowed" %]
...
...
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