| 
      
            Lines 738-743
          sub _parseletter_sth {
      
      
        Link Here
      
     | 
  
        
          | 738 | 
              ($table eq 'accountlines' )    ? "SELECT * FROM $table WHERE   accountlines_id = ?"                               :  | 
          738 | 
              ($table eq 'accountlines' )    ? "SELECT * FROM $table WHERE   accountlines_id = ?"                               :  | 
        
        
          | 739 | 
              ($table eq 'biblio'       )    ? "SELECT * FROM $table WHERE   biblionumber = ?"                                  :  | 
          739 | 
              ($table eq 'biblio'       )    ? "SELECT * FROM $table WHERE   biblionumber = ?"                                  :  | 
        
        
          | 740 | 
              ($table eq 'biblioitems'  )    ? "SELECT * FROM $table WHERE   biblionumber = ?"                                  :  | 
          740 | 
              ($table eq 'biblioitems'  )    ? "SELECT * FROM $table WHERE   biblionumber = ?"                                  :  | 
        
            
               | 
               | 
              741 | 
                  ($table eq 'tickets'      )    ? "SELECT * FROM $table WHERE   id = ?"                                            :  | 
            
        
          | 741 | 
              ($table eq 'credits'      )    ? "SELECT * FROM accountlines WHERE   accountlines_id = ?"                         :  | 
          742 | 
              ($table eq 'credits'      )    ? "SELECT * FROM accountlines WHERE   accountlines_id = ?"                         :  | 
        
        
          | 742 | 
              ($table eq 'debits'       )    ? "SELECT * FROM accountlines WHERE   accountlines_id = ?"                         :  | 
          743 | 
              ($table eq 'debits'       )    ? "SELECT * FROM accountlines WHERE   accountlines_id = ?"                         :  | 
        
        
          | 743 | 
              ($table eq 'items'        )    ? "SELECT * FROM $table WHERE     itemnumber = ?"                                  :  | 
          744 | 
              ($table eq 'items'        )    ? "SELECT * FROM $table WHERE     itemnumber = ?"                                  :  | 
        
  
    | 
      
            Lines 1615-1621
          sub _process_tt {
      
      
        Link Here
      
     | 
  
        
          | 1615 | 
              my $tt_params = { %{ _get_tt_params( $tables ) }, %{ _get_tt_params( $loops, 'is_a_loop' ) }, %$substitute, %$objects }; | 
          1616 | 
              my $tt_params = { %{ _get_tt_params( $tables ) }, %{ _get_tt_params( $loops, 'is_a_loop' ) }, %$substitute, %$objects }; | 
        
        
          | 1616 | 
           | 
          1617 | 
           | 
        
        
          | 1617 | 
              $content = add_tt_filters( $content );  | 
          1618 | 
              $content = add_tt_filters( $content );  | 
        
          
            
              | 1618 | 
                  $content = qq|[% USE KohaDates %][% USE Remove_MARC_punctuation %]$content|;  | 
              1619 | 
                  $content = qq|[% USE KohaDates %][% USE Remove_MARC_punctuation %][% PROCESS 'html_helpers.inc' %]$content|;  | 
            
        
          | 1619 | 
           | 
          1620 | 
           | 
        
        
          | 1620 | 
              my $output;  | 
          1621 | 
              my $output;  | 
        
        
          | 1621 | 
              my $schema = Koha::Database->new->schema;  | 
          1622 | 
              my $schema = Koha::Database->new->schema;  | 
        
  
    | 
      
            Lines 1729-1734
          sub _get_tt_params {
      
      
        Link Here
      
     | 
  
        
          | 1729 | 
                      plural   => 'suggestions',  | 
          1730 | 
                      plural   => 'suggestions',  | 
        
        
          | 1730 | 
                      pk       => 'suggestionid',  | 
          1731 | 
                      pk       => 'suggestionid',  | 
        
        
          | 1731 | 
                  },  | 
          1732 | 
                  },  | 
        
            
               | 
               | 
              1733 | 
                      tickets => { | 
            
            
              | 1734 | 
                          module   => 'Koha::Tickets',  | 
            
            
              | 1735 | 
                          singular => 'ticket',  | 
            
            
              | 1736 | 
                          plural   => 'tickets',  | 
            
            
              | 1737 | 
                          pk       => 'id',  | 
            
            
              | 1738 | 
                      },  | 
            
        
          | 1732 | 
                  issues => { | 
          1739 | 
                  issues => { | 
        
        
          | 1733 | 
                      module   => 'Koha::Checkouts',  | 
          1740 | 
                      module   => 'Koha::Checkouts',  | 
        
        
          | 1734 | 
                      singular => 'checkout',  | 
          1741 | 
                      singular => 'checkout',  |