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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
013e7055
Commit
013e7055
authored
Feb 15, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the no_open_bug_status code error into the Voting extension.
https://bugzilla.mozilla.org/show_bug.cgi?id=372979
parent
120b63d5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
6 deletions
+25
-6
Extension.pm
extensions/Voting/Extension.pm
+1
-1
code-error-errors.html.tmpl
...mplate/en/default/hook/global/code-error-errors.html.tmpl
+24
-0
code-error.html.tmpl
template/en/default/global/code-error.html.tmpl
+0
-5
No files found.
extensions/Voting/Extension.pm
View file @
013e7055
...
...
@@ -836,7 +836,7 @@ sub _confirm_if_vote_confirmed {
last
;
}
}
ThrowCodeError
(
'no_open_bug_status'
)
unless
$new_status
;
ThrowCodeError
(
'
voting_
no_open_bug_status'
)
unless
$new_status
;
# We cannot call $bug->set_status() here, because a user without
# canconfirm privs should still be able to confirm a bug by
...
...
extensions/Voting/template/en/default/hook/global/code-error-errors.html.tmpl
0 → 100644
View file @
013e7055
[%# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Bugzilla Bug Tracking System.
#
# The Initial Developer of the Original Code is Everything Solved, Inc.
# Portions created by the Initial Developer are Copyright (C) 2010
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Max Kanat-Alexander <mkanat@bugzilla.org>
#%]
[% IF error == "voting_no_open_bug_status" %]
[% title = "$terms.Bug Cannot Be Confirmed" %]
There is no valid transition from
[%+ display_value("bug_status", "UNCONFIRMED") FILTER html %] to an open state
template/en/default/global/code-error.html.tmpl
View file @
013e7055
...
...
@@ -374,11 +374,6 @@
You cannot set the resolution of [% terms.abug %] to [% display_value("resolution", "MOVED") FILTER html %] without
moving the [% terms.bug %].
[% ELSIF error == "no_open_bug_status" %]
[% title = "$terms.Bug Cannot Be Confirmed" %]
There is no valid transition from
[%+ display_value("bug_status", "UNCONFIRMED") FILTER html %] to an open state.
[% ELSIF error == "param_invalid" %]
[% title = "Invalid Parameter" %]
<code>[% param FILTER html %]</code> is not a valid parameter
...
...
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