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
b446f4e4
Commit
b446f4e4
authored
Jul 03, 2008
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 442821: Make the workflow editor deny closed statuses for new bugs
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent
f1f87e08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
editworkflow.cgi
editworkflow.cgi
+1
-1
edit.html.tmpl
template/en/default/admin/workflow/edit.html.tmpl
+1
-1
No files found.
editworkflow.cgi
View file @
b446f4e4
...
...
@@ -87,7 +87,7 @@ elsif ($action eq 'update') {
# Part 1: Initial bug statuses.
foreach
my
$new
(
@$statuses
)
{
if
(
$cgi
->
param
(
'w_0_'
.
$new
->
id
))
{
if
(
$
new
->
is_open
&&
$
cgi
->
param
(
'w_0_'
.
$new
->
id
))
{
$sth_insert
->
execute
(
undef
,
$new
->
id
)
unless
defined
$workflow
->
{
0
}
->
{
$new
->
id
};
}
...
...
template/en/default/admin/workflow/edit.html.tmpl
View file @
b446f4e4
...
...
@@ -67,7 +67,7 @@
</th>
[% FOREACH new_status = statuses %]
[% IF status.id != new_status.id %]
[% IF status.id != new_status.id
&& (status.id || new_status.is_open)
%]
[% checked = workflow.${status.id}.${new_status.id}.defined ? 1 : 0 %]
[% mandatory = (status.id && new_status.name == Param("duplicate_or_move_bug_status")) ? 1 : 0 %]
<td align="center" class="checkbox-cell[% " checked" IF checked || mandatory %]"
...
...
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