[otrs-cvs] CVS: otrs/Kernel/Modules AgentStats.pm,1.4,1.5

cvs-log at otrs.org cvs-log at otrs.org
Mon Aug 7 09:58:41 CEST 2006


Update of /home/cvs/otrs/Kernel/Modules
In directory lancelot:/tmp/cvs-serv7485/Kernel/Modules

Modified Files:
	AgentStats.pm 
Log Message:
overwork comments

Index: AgentStats.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AgentStats.pm,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** AgentStats.pm	31 Jul 2006 15:22:52 -0000	1.4
--- AgentStats.pm	7 Aug 2006 06:58:39 -0000	1.5
***************
*** 681,685 ****
              }
          }
! # Sollten die ErrorWarnings nicht in die Notificationzeile?
          # show errors
          if ($Error == 1) {
--- 681,685 ----
              }
          }
! # TODO Sollten die ErrorWarnings nicht in die Notificationzeile?
          # show errors
          if ($Error == 1) {
***************
*** 700,704 ****
          $Output .= $Self->{LayoutObject}->Footer();
          return $Output;
- 
      }
      # ---------------------------------------------------------- #
--- 700,703 ----
***************
*** 1222,1227 ****
          }
  
- 
- 
          # create selectboxes 'Cache', 'SumRow', 'SumCol', and 'Valid'
          foreach my $Key (qw(Cache SumRow SumCol)) {
--- 1221,1224 ----
***************
*** 1925,1933 ****
                          $ENV{REQUEST_URI};
                  }
!                 # create new document
!                 $Self->{PDFObject}->DocumentNew(
!                     Title => $Self->{ConfigObject}->Get('Product') . ': ' . $Title,
!                 );
!                 # create the content array
                  my %Return;
                  my $CounterRow = 0;
--- 1922,1926 ----
                          $ENV{REQUEST_URI};
                  }
!                 # create the header
                  my %Return;
                  my $CounterRow = 0;
***************
*** 1942,1945 ****
--- 1935,1939 ----
                      $CounterRow++;
                  }
+                 # create the content array
                  foreach my $Row (@StatArray) {
                      my $CounterColumn = 0;
***************
*** 1950,1954 ****
                      $CounterRow++;
                  }
! 
                  if (!$Return{CellData}[0][0]) {
                      $Return{CellData}[0][0]{Content} = $Self->{LayoutObject}->{LanguageObject}->Get('No Result!');
--- 1944,1948 ----
                      $CounterRow++;
                  }
!                 # output 'No Result', if no content was given
                  if (!$Return{CellData}[0][0]) {
                      $Return{CellData}[0][0]{Content} = $Self->{LayoutObject}->{LanguageObject}->Get('No Result!');
***************
*** 1956,1963 ****
                  $Return{ColumnData} = [];
  
                  my $Loop = 1;
                  my $Counter = 0;
                  while ($Loop) {
!                     # create new page
                      $Self->{PDFObject}->PageNew(
                          PageOrientation => 'landscape',
--- 1950,1962 ----
                  $Return{ColumnData} = [];
  
+                 # create new pdf document
+                 $Self->{PDFObject}->DocumentNew(
+                     Title => $Self->{ConfigObject}->Get('Product') . ': ' . $Title,
+                 );
+ 
                  my $Loop = 1;
                  my $Counter = 0;
                  while ($Loop) {
!                     # create new pdf page
                      $Self->{PDFObject}->PageNew(
                          PageOrientation => 'landscape',
***************
*** 2031,2035 ****
                      $Counter++;
                  }
!                 # return the document
                  my $PDFString = $Self->{PDFObject}->DocumentOutput();
                  return $Self->{LayoutObject}->Attachment(
--- 2030,2034 ----
                      $Counter++;
                  }
!                 # return the pdf document
                  my $PDFString = $Self->{PDFObject}->DocumentOutput();
                  return $Self->{LayoutObject}->Attachment(



More information about the cvs-log mailing list