[otrs-cvs] otrs/Kernel/Output/HTML LayoutTicket.pm,1.14,1.15

cvs-log at otrs.org cvs-log at otrs.org
Tue Apr 3 18:36:37 GMT 2007


Comments:
Update of /home/cvs/otrs/Kernel/Output/HTML
In directory lancelot:/tmp/cvs-serv10667/Kernel/Output/HTML

Modified Files:
	LayoutTicket.pm 
Log Message:
Fixed not shown ticket history in phone and email view.

Author: martin

Index: LayoutTicket.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Output/HTML/LayoutTicket.pm,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** LayoutTicket.pm	2 Apr 2007 13:13:15 -0000	1.14
--- LayoutTicket.pm	3 Apr 2007 18:36:31 -0000	1.15
***************
*** 67,70 ****
--- 67,71 ----
      my %Param = @_;
      my $ShownType = 1;
+     my @MapNew = ();
      if (ref($Param{Data}) ne 'HASH') {
          $Self->FatalError(Message => 'Need Hash ref in Data param');
***************
*** 74,81 ****
      }
      my $Map = $Param{Data}->{Config}->{Map};
      # check if customer company support is enabled
      if ($Param{Data}->{Config}->{CustomerCompanySupport}) {
          my $Map2 = $Param{Data}->{CompanyConfig}->{Map};
!         push (@{$Map}, @{$Map2});
      }
      if ($Param{Type} && $Param{Type} eq 'Lite') {
--- 75,87 ----
      }
      my $Map = $Param{Data}->{Config}->{Map};
+     if ($Map) {
+         @MapNew = (@{$Map});
+     }
      # check if customer company support is enabled
      if ($Param{Data}->{Config}->{CustomerCompanySupport}) {
          my $Map2 = $Param{Data}->{CompanyConfig}->{Map};
!         if ($Map2) {
!             push (@MapNew, @{$Map2});
!         }
      }
      if ($Param{Type} && $Param{Type} eq 'Lite') {
***************
*** 84,88 ****
          # the normal view also
          my $Used = 0;
!         foreach my $Field (@{$Map}) {
              if ($Field->[3] == 2) {
                  $Used = 1;
--- 90,94 ----
          # the normal view also
          my $Used = 0;
!         foreach my $Field (@MapNew) {
              if ($Field->[3] == 2) {
                  $Used = 1;
***************
*** 94,98 ****
      }
      # build html table
!     foreach my $Field (@{$Map}) {
          if ($Field->[3] && $Field->[3] >= $ShownType && $Param{Data}->{$Field->[0]}) {
              my %Record = ();
--- 100,104 ----
      }
      # build html table
!     foreach my $Field (@MapNew) {
          if ($Field->[3] && $Field->[3] >= $ShownType && $Param{Data}->{$Field->[0]}) {
              my %Record = ();


More information about the cvs-log mailing list