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
b82b4312
Commit
b82b4312
authored
Dec 13, 2009
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 369489: Remove the milestoneurl feature and link "Target Milestone" to the fields.html page
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent
e401b0b8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
52 deletions
+8
-52
Bug.pm
Bugzilla/Bug.pm
+0
-10
Schema.pm
Bugzilla/DB/Schema.pm
+0
-2
DB.pm
Bugzilla/Install/DB.pm
+4
-2
Product.pm
Bugzilla/Product.pm
+0
-6
editproducts.cgi
editproducts.cgi
+0
-2
edit-common.html.tmpl
template/en/default/admin/products/edit-common.html.tmpl
+0
-6
updated.html.tmpl
template/en/default/admin/products/updated.html.tmpl
+0
-17
edit.html.tmpl
template/en/default/bug/edit.html.tmpl
+4
-7
No files found.
Bugzilla/Bug.pm
View file @
b82b4312
...
...
@@ -1972,7 +1972,6 @@ sub set_product {
$self
->
{
_old_product_name
}
=
$old_product
->
name
;
# Delete fields that depend upon the old Product value.
delete
$self
->
{
choices
};
delete
$self
->
{
milestoneurl
};
$product_changed
=
1
;
}
...
...
@@ -2734,15 +2733,6 @@ sub comments {
return
\
@comments
;
}
sub
milestoneurl
{
my
(
$self
)
=
@_
;
return
$self
->
{
'milestoneurl'
}
if
exists
$self
->
{
'milestoneurl'
};
return
''
if
$self
->
{
'error'
};
$self
->
{
'milestoneurl'
}
=
$self
->
product_obj
->
milestone_url
;
return
$self
->
{
'milestoneurl'
};
}
sub
product
{
my
(
$self
)
=
@_
;
return
$self
->
{
product
}
if
exists
$self
->
{
product
};
...
...
Bugzilla/DB/Schema.pm
View file @
b82b4312
...
...
@@ -1214,8 +1214,6 @@ use constant ABSTRACT_SCHEMA => {
COLUMN
=>
'id'
,
DELETE
=>
'CASCADE'
}},
description
=>
{
TYPE
=>
'MEDIUMTEXT'
},
milestoneurl
=>
{
TYPE
=>
'TINYTEXT'
,
NOTNULL
=>
1
,
DEFAULT
=>
"''"
},
isactive
=>
{
TYPE
=>
'BOOLEAN'
,
NOTNULL
=>
1
,
DEFAULT
=>
1
},
votesperuser
=>
{
TYPE
=>
'INT2'
,
NOTNULL
=>
1
,
...
...
Bugzilla/Install/DB.pm
View file @
b82b4312
...
...
@@ -459,8 +459,10 @@ sub update_table_definitions {
_move_data_nomail_into_db
();
# The products table lacked sensible defaults.
if
(
$dbh
->
bz_column_info
(
'products'
,
'milestoneurl'
)
{
$dbh
->
bz_alter_column
(
'products'
,
'milestoneurl'
,
{
TYPE
=>
'TINYTEXT'
,
NOTNULL
=>
1
,
DEFAULT
=>
"''"
});
}
if
(
$dbh
->
bz_column_info
(
'products'
,
'disallownew'
)){
$dbh
->
bz_alter_column
(
'products'
,
'disallownew'
,
{
TYPE
=>
'BOOLEAN'
,
NOTNULL
=>
1
,
DEFAULT
=>
0
});
...
...
@@ -588,6 +590,8 @@ sub update_table_definitions {
_set_attachment_comment_types
();
$dbh
->
bz_drop_column
(
'products'
,
'milestoneurl'
);
################################################################
# New --TABLE-- changes should go *** A B O V E *** this point #
################################################################
...
...
@@ -623,8 +627,6 @@ sub _update_pre_checksetup_bugzillas {
{
TYPE
=>
'BOOLEAN'
,
NOTNULL
=>
1
},
0
);
}
$dbh
->
bz_add_column
(
'products'
,
'milestoneurl'
,
{
TYPE
=>
'TINYTEXT'
,
NOTNULL
=>
1
},
''
);
$dbh
->
bz_add_column
(
'components'
,
'initialqacontact'
,
{
TYPE
=>
'TINYTEXT'
});
$dbh
->
bz_add_column
(
'components'
,
'description'
,
...
...
Bugzilla/Product.pm
View file @
b82b4312
...
...
@@ -53,7 +53,6 @@ use constant DB_COLUMNS => qw(
name
classification_id
description
milestoneurl
isactive
votesperuser
maxvotesperbug
...
...
@@ -71,7 +70,6 @@ use constant UPDATE_COLUMNS => qw(
name
description
defaultmilestone
milestoneurl
isactive
votesperuser
maxvotesperbug
...
...
@@ -84,7 +82,6 @@ use constant VALIDATORS => {
description
=>
\&
_check_description
,
version
=>
\&
_check_version
,
defaultmilestone
=>
\&
_check_default_milestone
,
milestoneurl
=>
\&
_check_milestone_url
,
isactive
=>
\&
Bugzilla::Object::
check_boolean
,
votesperuser
=>
\&
_check_votes_per_user
,
maxvotesperbug
=>
\&
_check_votes_per_bug
,
...
...
@@ -630,7 +627,6 @@ sub _create_series {
sub
set_name
{
$_
[
0
]
->
set
(
'name'
,
$_
[
1
]);
}
sub
set_description
{
$_
[
0
]
->
set
(
'description'
,
$_
[
1
]);
}
sub
set_default_milestone
{
$_
[
0
]
->
set
(
'defaultmilestone'
,
$_
[
1
]);
}
sub
set_milestone_url
{
$_
[
0
]
->
set
(
'milestoneurl'
,
$_
[
1
]);
}
sub
set_is_active
{
$_
[
0
]
->
set
(
'isactive'
,
$_
[
1
]);
}
sub
set_votes_per_user
{
$_
[
0
]
->
set
(
'votesperuser'
,
$_
[
1
]);
}
sub
set_votes_per_bug
{
$_
[
0
]
->
set
(
'maxvotesperbug'
,
$_
[
1
]);
}
...
...
@@ -887,7 +883,6 @@ sub flag_types {
###############################
sub
description
{
return
$_
[
0
]
->
{
'description'
};
}
sub
milestone_url
{
return
$_
[
0
]
->
{
'milestoneurl'
};
}
sub
is_active
{
return
$_
[
0
]
->
{
'isactive'
};
}
sub
votes_per_user
{
return
$_
[
0
]
->
{
'votesperuser'
};
}
sub
max_votes_per_bug
{
return
$_
[
0
]
->
{
'maxvotesperbug'
};
}
...
...
@@ -940,7 +935,6 @@ Bugzilla::Product - Bugzilla product class.
my $id = $product->id;
my $name = $product->name;
my $description = $product->description;
my $milestoneurl = $product->milestone_url;
my isactive = $product->is_active;
my votesperuser = $product->votes_per_user;
my maxvotesperbug = $product->max_votes_per_bug;
...
...
editproducts.cgi
View file @
b82b4312
...
...
@@ -182,7 +182,6 @@ if ($action eq 'new') {
description
=>
scalar
$cgi
->
param
(
'description'
),
version
=>
scalar
$cgi
->
param
(
'version'
),
defaultmilestone
=>
scalar
$cgi
->
param
(
'defaultmilestone'
),
milestoneurl
=>
scalar
$cgi
->
param
(
'milestoneurl'
),
isactive
=>
scalar
$cgi
->
param
(
'is_active'
),
votesperuser
=>
scalar
$cgi
->
param
(
'votesperuser'
),
maxvotesperbug
=>
scalar
$cgi
->
param
(
'maxvotesperbug'
),
...
...
@@ -294,7 +293,6 @@ if ($action eq 'update') {
$product
->
set_name
(
$product_name
);
$product
->
set_description
(
scalar
$cgi
->
param
(
'description'
));
$product
->
set_default_milestone
(
scalar
$cgi
->
param
(
'defaultmilestone'
));
$product
->
set_milestone_url
(
scalar
$cgi
->
param
(
'milestoneurl'
));
$product
->
set_is_active
(
scalar
$cgi
->
param
(
'is_active'
));
$product
->
set_votes_per_user
(
scalar
$cgi
->
param
(
'votesperuser'
));
$product
->
set_votes_per_bug
(
scalar
$cgi
->
param
(
'maxvotesperbug'
));
...
...
template/en/default/admin/products/edit-common.html.tmpl
View file @
b82b4312
...
...
@@ -45,12 +45,6 @@
[% IF Param('usetargetmilestone') -%]
<tr>
<th align="right">URL describing milestones for this product:</th>
<td><input type="text" size="64" maxlength="255" name="milestoneurl"
value="[% product.milestoneurl FILTER html %]">
</td>
</tr>
<tr>
<th align="right">Default milestone:</th>
<td>
[% IF product.milestones.size %]
...
...
template/en/default/admin/products/updated.html.tmpl
View file @
b82b4312
...
...
@@ -67,23 +67,6 @@
</p>
[% END %]
[% IF changes.milestoneurl.defined %]
<p>
Updated milestone URL
[% IF changes.milestoneurl.0 != '' %]
from<br> <a href="[%- changes.milestoneurl.0 FILTER html %]">
[%- changes.milestoneurl.0 FILTER html %]</a>
[% END %]
to
[% IF product.milestone_url != '' %]
<br><a href="[%- product.milestone_url FILTER html %]">
[%- product.milestone_url FILTER html %]</a>.
[% ELSE %]
be empty.
[% END %]
</p>
[% END %]
[% IF changes.defaultmilestone.defined %]
<p>
Updated default milestone from '[% changes.defaultmilestone.0 FILTER html %]' to
...
...
template/en/default/bug/edit.html.tmpl
View file @
b82b4312
...
...
@@ -499,13 +499,10 @@
[% IF Param("usetargetmilestone") && bug.target_milestone %]
<tr>
<td class="field_label">
<label for="target_milestone"><b>
[% IF bug.milestoneurl %]
<a href="[% bug.milestoneurl FILTER html %]">
[% END %]
Target Milestone[% "</a>" IF bug.milestoneurl %]
[%%]</b></label>:
<th class="field_label">
<label for="target_milestone">
<a href="page.cgi?id=fields.html#target_milestone">
Target Milestone</a></label>:
</td>
[% PROCESS select selname = "target_milestone" %]
</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