]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 848635: Old queries based on tags are no longer listed in the page footer by...
authorFrédéric Buclin <LpSolit@gmail.com>
Sun, 28 Apr 2013 11:50:04 +0000 (13:50 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Sun, 28 Apr 2013 11:50:04 +0000 (13:50 +0200)
r=glob a=LpSolit

Bugzilla/Install/DB.pm

index 386c8d2b46c81afafacdf513d277f41132dc803b..023ef7523345123de3654481b7be95ea25f96011 100644 (file)
@@ -3576,9 +3576,6 @@ sub _migrate_user_tags {
                                      VALUES (?, ?)');
     my $sth_nq = $dbh->prepare('UPDATE namedqueries SET query = ?
                                 WHERE id = ?');
-    my $sth_nq_footer = $dbh->prepare(
-        'DELETE FROM namedqueries_link_in_footer 
-               WHERE user_id = ? AND namedquery_id = ?');
 
     if (scalar @$tags) {
         print install_string('update_queries_to_tags'), "\n";
@@ -3618,13 +3615,11 @@ sub _migrate_user_tags {
             next if !$bug_id;
             $sth_bug_tag->execute($bug_id, $tag_id);
         }
-        
+
         # Existing tags may be used in whines, or shared with
         # other users. So we convert them rather than delete them.
         $uri->query_param('tag', $tag_name);
         $sth_nq->execute($uri->query, $query_id);
-        # But we don't keep showing them in the footer.
-        $sth_nq_footer->execute($user_id, $query_id);
     }
 
     $dbh->bz_commit_transaction();