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
130a98f4
Commit
130a98f4
authored
Aug 13, 2010
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 581690: Restore the ability to move several bugs at once to another installation
r=ghendricks a=LpSolit
parent
a9b67c7a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
13 deletions
+38
-13
Extension.pm
extensions/OldBugMove/Extension.pm
+2
-8
edit-after_comment_textarea.html.tmpl
...en/default/hook/bug/edit-after_comment_textarea.html.tmpl
+5
-5
edit-multiple-after_groups.html.tmpl
...en/default/hook/list/edit-multiple-after_groups.html.tmpl
+28
-0
edit-multiple.html.tmpl
template/en/default/list/edit-multiple.html.tmpl
+3
-0
No files found.
extensions/OldBugMove/Extension.pm
View file @
130a98f4
...
...
@@ -107,7 +107,7 @@ sub object_end_of_set_all {
my
(
$self
,
$args
)
=
@_
;
my
$object
=
$args
->
{
'object'
};
if
(
$object
->
isa
(
'Bugzilla::Bug'
)
and
_bug_is_moving
(
$object
)
)
{
if
(
$object
->
isa
(
'Bugzilla::Bug'
)
and
Bugzilla
->
input_params
->
{
'oldbugmove'
}
)
{
my
$new_status
=
Bugzilla
->
params
->
{
'duplicate_or_move_bug_status'
};
$object
->
set_bug_status
(
$new_status
,
{
resolution
=>
'MOVED'
});
}
...
...
@@ -132,7 +132,7 @@ sub _check_bug_resolution {
my
$original_validator
=
shift
;
my
(
$invocant
,
$resolution
)
=
@_
;
if
(
$resolution
eq
'MOVED'
and
!
_bug_is_moving
(
$invocant
)
)
{
if
(
$resolution
eq
'MOVED'
and
!
Bugzilla
->
input_params
->
{
'oldbugmove'
}
)
{
# MOVED has a special meaning and can only be used when
# really moving bugs to another installation.
ThrowUserError
(
'oldbugmove_no_manual_move'
);
...
...
@@ -198,12 +198,6 @@ sub _move_bug {
MessageToMTA
(
$msg
);
}
sub
_bug_is_moving
{
my
$bug
=
shift
;
my
$oldbugmove
=
Bugzilla
->
input_params
->
{
"oldbugmove_"
.
$bug
->
id
};
return
$oldbugmove
?
1
:
0
;
}
sub
_user_is_mover
{
my
$user
=
shift
;
...
...
extensions/OldBugMove/template/en/default/hook/bug/edit-after_comment_textarea.html.tmpl
View file @
130a98f4
...
...
@@ -19,9 +19,9 @@
#%]
[% IF oldbugmove_user_is_mover(user) AND bug.resolution != 'MOVED' %]
<
br
>
<input type="submit" name="oldbugmove_[% bug.id FILTER html %]
"
id="oldbugmove"
value="Move [% terms.Bug FILTER html %] to
[%= Param('move-to-url') FILTER html %]"
>
<
p
>
<input type="submit" id="oldbugmove" name="oldbugmove
"
value="Move [% terms.Bug FILTER html %] to
[%= Param('move-to-url') FILTER html %]">
</p
>
[% END %]
extensions/OldBugMove/template/en/default/hook/list/edit-multiple-after_groups.html.tmpl
0 → 100644
View file @
130a98f4
[%# 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>
# Frédéric Buclin <LpSolit@gmail.com>
#%]
[% IF oldbugmove_user_is_mover(user) %]
<p>
<input type="submit" id="oldbugmove" name="oldbugmove"
value="Move [% terms.Bugs FILTER html %] to
[%= Param('move-to-url') FILTER html %]">
</p>
[% END %]
template/en/default/list/edit-multiple.html.tmpl
View file @
130a98f4
...
...
@@ -371,6 +371,9 @@
[% END %]
[% END %]
[%+ Hook.process('after_groups') %]
<input type="submit" id="commit" value="Commit">
[%############################################################################%]
...
...
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