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
b77ad821
Commit
b77ad821
authored
Jun 25, 2002
by
bbaetz%student.usyd.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 157085 - verify-new-product doesn't set defaults
r=jouni, gerv
parent
9f510268
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
+25
-4
process_bug.cgi
process_bug.cgi
+20
-1
verify-new-product.html.tmpl
template/en/default/bug/process/verify-new-product.html.tmpl
+5
-3
No files found.
process_bug.cgi
View file @
b77ad821
...
...
@@ -191,16 +191,35 @@ if ((($::FORM{'id'} && $::FORM{'product'} ne $::oldproduct)
if
(
!
$vok
||
!
$cok
||
!
$mok
)
{
$vars
->
{
'verify_fields'
}
=
1
;
my
%
defaults
;
# We set the defaults to these fields to the old value,
# if its a valid option, otherwise we use the default where
# thats appropriate
$vars
->
{
'versions'
}
=
$::versions
{
$prod
};
if
(
lsearch
(
$::versions
{
$prod
},
$::FORM
{
'version'
})
!=
-
1
)
{
$defaults
{
'version'
}
=
$::FORM
{
'version'
};
}
$vars
->
{
'components'
}
=
$::components
{
$prod
};
if
(
lsearch
(
$::components
{
$prod
},
$::FORM
{
'component'
})
!=
-
1
)
{
$defaults
{
'component'
}
=
$::FORM
{
'component'
};
}
if
(
Param
(
"usetargetmilestone"
))
{
$vars
->
{
'use_target_milestone'
}
=
1
;
$vars
->
{
'milestones'
}
=
$::target_milestone
{
$prod
};
if
(
lsearch
(
$::target_milestone
{
$prod
},
$::FORM
{
'target_milestone'
})
!=
-
1
)
{
$defaults
{
'target_milestone'
}
=
$::FORM
{
'target_milestone'
};
}
else
{
SendSQL
(
"SELECT defaultmilestone FROM products WHERE "
.
"product = "
.
SqlQuote
(
$prod
));
$defaults
{
'target_milestone'
}
=
FetchOneColumn
();
}
}
else
{
$vars
->
{
'use_target_milestone'
}
=
0
;
}
$vars
->
{
'defaults'
}
=
\%
defaults
;
}
else
{
$vars
->
{
"verify_fields"
}
=
0
;
...
...
template/en/default/bug/process/verify-new-product.html.tmpl
View file @
b77ad821
...
...
@@ -26,6 +26,8 @@
# versions: array; versions for the new product.
# components: array; components for the new product.
# milestones: array; milestones for the new product.
# defaults: hash; keys are names of fields, values are defaults for
# those fields
# verify_bug_group: boolean; whether or not to ask the user
# if they want to add the bug to its new product's group
# use_target_milestone: boolean; whether or not to use
...
...
@@ -57,16 +59,16 @@
<tr>
<td>
<b>Version:</b><br>
[% PROCESS "global/select-menu.html.tmpl" name="version" options=versions %]
[% PROCESS "global/select-menu.html.tmpl" name="version" options=versions
default=defaults.version
%]
</td>
<td>
<b>Component:</b><br>
[% PROCESS "global/select-menu.html.tmpl" name="component" options=components %]
[% PROCESS "global/select-menu.html.tmpl" name="component" options=components
default=defaults.component
%]
</td>
[% IF use_target_milestone %]
<td>
<b>Target Milestone:</b><br>
[% PROCESS "global/select-menu.html.tmpl" name="target_milestone" options=milestones %]
[% PROCESS "global/select-menu.html.tmpl" name="target_milestone" options=milestones
default=defaults.target_milestone
%]
</td>
[% END %]
</tr>
...
...
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