[otrs-cvs] FAQ/Kernel/Modules FAQ.pm,1.9,1.10

cvs-log at otrs.org cvs-log at otrs.org
Tue Apr 10 10:54:30 GMT 2007


Comments:
Update of /home/cvs/FAQ/Kernel/Modules
In directory lancelot:/tmp/cvs-serv25292/Kernel/Modules

Modified Files:
	FAQ.pm 
Log Message:
Fixed bug in html quoting.

Author: rk

Index: FAQ.pm
===================================================================
RCS file: /home/cvs/FAQ/Kernel/Modules/FAQ.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** FAQ.pm	25 Jan 2007 15:21:47 -0000	1.9
--- FAQ.pm	10 Apr 2007 10:54:25 -0000	1.10
***************
*** 202,207 ****
          Name => 'FAQPathCategoryElement',
          Data => { 'Name' => $Self->{ConfigObject}->Get('FAQ::Default::RootCategoryName'),
!                   'CategoryID' => '0'
!                 },
      );
  
--- 202,207 ----
          Name => 'FAQPathCategoryElement',
          Data => { 'Name' => $Self->{ConfigObject}->Get('FAQ::Default::RootCategoryName'),
!             'CategoryID' => '0'
!         },
      );
  
***************
*** 509,513 ****
      foreach my $Key (qw (Field1 Field2 Field3 Field4 Field5 Field6)) {
          if ($Self->{ConfigObject}->Get('FAQ::Item::HTML')) {
!             $ItemData{$Key} =~ s/\n/\<br\>/g;
          }
          else {
--- 509,524 ----
      foreach my $Key (qw (Field1 Field2 Field3 Field4 Field5 Field6)) {
          if ($Self->{ConfigObject}->Get('FAQ::Item::HTML')) {
!             my @Array = split /pre>/, $ItemData{$Key};
!             my $Text = '';
!             foreach (@Array) {
!                 if ($_ =~ /(.*)\<\/$/) {
!                     $Text .= 'pre>'.$_.'pre>';
!                 }
!                 else {
!                     $_ =~ s/\n/\<br\>/g;
!                     $Text .= $_;
!                 }
!             }
!             $ItemData{$Key} = $Text;
          }
          else {
***************
*** 709,714 ****
      # add article
      $Self->{LayoutObject}->Block(
!          Name => 'Print',
!          Data => \%ItemData,
      );
      # fields
--- 720,725 ----
      # add article
      $Self->{LayoutObject}->Block(
!         Name => 'Print',
!         Data => \%ItemData,
      );
      # fields


More information about the cvs-log mailing list