aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2020-03-07 11:19:34 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2020-03-07 11:20:45 -0800
commit1383dfc4ff1dfe5bfa5b327b4ae19b2af6a2a28e (patch)
treeef46b4d84362cabf31dd2c098d0fae38fcd0e018 /extensions/MoreBugUrl/Extension.pm
parentGentoo: alpha is now ~arch-only (diff)
parentBugzilla/Util: disable BiDi tr safety (diff)
downloadbugzilla-1383dfc4ff1dfe5bfa5b327b4ae19b2af6a2a28e.tar.gz
bugzilla-1383dfc4ff1dfe5bfa5b327b4ae19b2af6a2a28e.tar.bz2
bugzilla-1383dfc4ff1dfe5bfa5b327b4ae19b2af6a2a28e.zip
Bugzilla 5.0.6! Merge branch 'bugstest'
This update Gentoo production Bugzilla to 5.0.6. Please note that upstream reformatted all code, so the commit series has some extra hops to help reflect that change. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'extensions/MoreBugUrl/Extension.pm')
-rw-r--r--extensions/MoreBugUrl/Extension.pm52
1 files changed, 27 insertions, 25 deletions
diff --git a/extensions/MoreBugUrl/Extension.pm b/extensions/MoreBugUrl/Extension.pm
index 0a4223e19..3158de294 100644
--- a/extensions/MoreBugUrl/Extension.pm
+++ b/extensions/MoreBugUrl/Extension.pm
@@ -14,41 +14,43 @@ use warnings;
use parent qw(Bugzilla::Extension);
use constant MORE_SUB_CLASSES => qw(
- Bugzilla::Extension::MoreBugUrl::BitBucket
- Bugzilla::Extension::MoreBugUrl::ReviewBoard
- Bugzilla::Extension::MoreBugUrl::Rietveld
- Bugzilla::Extension::MoreBugUrl::RT
- Bugzilla::Extension::MoreBugUrl::GetSatisfaction
- Bugzilla::Extension::MoreBugUrl::PHP
- Bugzilla::Extension::MoreBugUrl::Redmine
- Bugzilla::Extension::MoreBugUrl::Savane
- Bugzilla::Extension::MoreBugUrl::Phabricator
+ Bugzilla::Extension::MoreBugUrl::BitBucket
+ Bugzilla::Extension::MoreBugUrl::ReviewBoard
+ Bugzilla::Extension::MoreBugUrl::Rietveld
+ Bugzilla::Extension::MoreBugUrl::RT
+ Bugzilla::Extension::MoreBugUrl::GetSatisfaction
+ Bugzilla::Extension::MoreBugUrl::PHP
+ Bugzilla::Extension::MoreBugUrl::Redmine
+ Bugzilla::Extension::MoreBugUrl::Savane
+ Bugzilla::Extension::MoreBugUrl::Phabricator
);
# We need to update bug_see_also table because both
# Rietveld and ReviewBoard were originally under Bugzilla/BugUrl/.
sub install_update_db {
- my $dbh = Bugzilla->dbh;
+ my $dbh = Bugzilla->dbh;
- my $should_rename = $dbh->selectrow_array(
- q{SELECT 1 FROM bug_see_also
+ my $should_rename = $dbh->selectrow_array(q{SELECT 1 FROM bug_see_also
WHERE class IN ('Bugzilla::BugUrl::Rietveld',
- 'Bugzilla::BugUrl::ReviewBoard')});
-
- if ($should_rename) {
- my $sth = $dbh->prepare('UPDATE bug_see_also SET class = ?
- WHERE class = ?');
- $sth->execute('Bugzilla::Extension::MoreBugUrl::ReviewBoard',
- 'Bugzilla::BugUrl::ReviewBoard');
-
- $sth->execute('Bugzilla::Extension::MoreBugUrl::Rietveld',
- 'Bugzilla::BugUrl::Rietveld');
- }
+ 'Bugzilla::BugUrl::ReviewBoard')}
+ );
+
+ if ($should_rename) {
+ my $sth = $dbh->prepare(
+ 'UPDATE bug_see_also SET class = ?
+ WHERE class = ?'
+ );
+ $sth->execute('Bugzilla::Extension::MoreBugUrl::ReviewBoard',
+ 'Bugzilla::BugUrl::ReviewBoard');
+
+ $sth->execute('Bugzilla::Extension::MoreBugUrl::Rietveld',
+ 'Bugzilla::BugUrl::Rietveld');
+ }
}
sub bug_url_sub_classes {
- my ($self, $args) = @_;
- push @{ $args->{sub_classes} }, MORE_SUB_CLASSES;
+ my ($self, $args) = @_;
+ push @{$args->{sub_classes}}, MORE_SUB_CLASSES;
}
__PACKAGE__->NAME;