diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-07-08 02:15:45 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-07-08 02:15:45 +0200 |
commit | ab04fe6c61b5fd55ca4b838ccb7abfd542bd2128 (patch) | |
tree | 8a0250608a9e1d566916a2576fcd3ef4464e6cf5 /contrib | |
parent | 8c9cd344c4153e9032e5c1b695bcfe9cb8144d80 (diff) | |
download | bugzilla-ab04fe6c61b5fd55ca4b838ccb7abfd542bd2128.tar.gz bugzilla-ab04fe6c61b5fd55ca4b838ccb7abfd542bd2128.tar.xz |
Bug 577149: Make convert-workflow rename values in saved searches
r=LpSolit, a=LpSolit
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/convert-workflow.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/convert-workflow.pl b/contrib/convert-workflow.pl index 7525bac95..8a740fcb2 100755 --- a/contrib/convert-workflow.pl +++ b/contrib/convert-workflow.pl @@ -25,6 +25,7 @@ use lib qw(. lib); use Bugzilla; use Bugzilla::Config qw(:admin); +use Bugzilla::Search::Saved; use Bugzilla::Status; my $confirmed = new Bugzilla::Status({ name => 'CONFIRMED' }); @@ -79,7 +80,7 @@ foreach my $pair (@translation) { } foreach my $what (qw(added removed)) { - $dbh->do("UPDATE bugs_activity SET $what = ? + $dbh->do("UPDATE bugs_activity SET $what = ? WHERE fieldid = ? AND $what = ?", undef, $to, $status_field->id, $from); } @@ -99,6 +100,8 @@ foreach my $pair (@translation) { $dbh->do('UPDATE bug_status SET value = ? WHERE value = ?', undef, $to, $from); } + + Bugzilla::Search::Saved->rename_field_value('bug_status', $from, $to); } $dbh->bz_commit_transaction(); |