]> git.donarmstrong.com Git - debbugs.git/commitdiff
fix link to cloned bugs
authorDon Armstrong <don@donarmstrong.com>
Fri, 19 Sep 2008 00:22:24 +0000 (17:22 -0700)
committerDon Armstrong <don@donarmstrong.com>
Fri, 19 Sep 2008 00:22:24 +0000 (17:22 -0700)
Debbugs/CGI/Bugreport.pm

index 24913e3237f6870315a67f36f3a4e3d6444d09f1..a01c2de4ff568a318aa18a62a2555581923f7077 100644 (file)
@@ -320,7 +320,7 @@ sub handle_record{
          # (even though these links already exist at the top)
          $output =~ s,((?:ftp|http|https)://[\S~-]+?/?)([\)\'\:\.\,]?(?:\s|\.<|$)),<a href=\"$1\">$1</a>$2,go;
          # Add links to the cloned bugs
-         $output =~ s{(Bug )(\d+)( cloned as bugs? )(\d+)(?:\-(\d+)|)}{$1.bug_links(bug=>$2).$3.bug_links(bug=>[$4..$5])}eo;
+         $output =~ s{(Bug )(\d+)( cloned as bugs? )(\d+)(?:\-(\d+)|)}{$1.bug_links(bug=>$2).$3.bug_links(bug=>(defined $5)?[$4..$5]:$4)}eo;
          # Add links to merged bugs
          $output =~ s{(?<=Merged )([\d\s]+)(?=\.)}{join(' ',map {bug_links(bug=>$_)} (split /\s+/, $1))}eo;
          # Add links to blocked bugs