[otrs-cvs] FAQ/Kernel/Modules FAQ.pm,1.41.2.2,1.41.2.3

CVS commits notifications of OTRS.org cvs-log at otrs.org
Mon Jul 13 15:55:52 GMT 2009


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

Modified Files:
      Tag: rel-1_5
	FAQ.pm 
Log Message:
Fixed problem if no customer article is available. Added missing mode param.

Author: ub

Index: FAQ.pm
===================================================================
RCS file: /home/cvs/FAQ/Kernel/Modules/FAQ.pm,v
retrieving revision 1.41.2.2
retrieving revision 1.41.2.3
diff -C2 -d -r1.41.2.2 -r1.41.2.3
*** FAQ.pm	7 Jul 2009 15:36:41 -0000	1.41.2.2
--- FAQ.pm	13 Jul 2009 15:55:47 -0000	1.41.2.3
***************
*** 238,241 ****
--- 238,242 ----
                  ParentID     => $Param{CategoryID},
                  CustomerUser => $Param{CustomerUser},
+                 Mode         => $Param{Mode},
                  )
              };
***************
*** 245,248 ****
--- 246,250 ----
              $Self->{FAQObject}->PublicCategorySearch(
                  ParentID => $Param{CategoryID},
+                 Mode     => $Param{Mode},
                  )
              };
***************
*** 1156,1160 ****
          LanguageTranslation => 0,
      );
!     my $Categories = ();
      if ( $Param{Mode} && $Param{Mode} eq 'Agent' ) {
          $Categories = $Self->{FAQObject}->GetUserCategories(
--- 1158,1162 ----
          LanguageTranslation => 0,
      );
!     my $Categories = {};
      if ( $Param{Mode} && $Param{Mode} eq 'Agent' ) {
          $Categories = $Self->{FAQObject}->GetUserCategories(
***************
*** 1186,1189 ****
--- 1188,1192 ----
                      ParentID     => $CategoryID,
                      CustomerUser => $Param{CustomerUser},
+                     Mode         => $Param{Mode},
                  )
              };
***************
*** 1191,1195 ****
  
          # build customer category hash
!         $Categories = ();
          for my $CategoryID (@CustomerCategoryIDs) {
              my %Category = $Self->{FAQObject}->CategoryGet( CategoryID => $CategoryID );
--- 1194,1198 ----
  
          # build customer category hash
!         $Categories = {};
          for my $CategoryID (@CustomerCategoryIDs) {
              my %Category = $Self->{FAQObject}->CategoryGet( CategoryID => $CategoryID );
***************
*** 1216,1219 ****
--- 1219,1223 ----
                  $Self->{FAQObject}->PublicCategorySearch(
                      ParentID => $CategoryID,
+                     Mode     => $Param{Mode},
                  )
              };
***************
*** 1221,1225 ****
  
          # build public category hash
!         $Categories = ();
          for my $CategoryID (@PublicCategoryIDs) {
              my %Category = $Self->{FAQObject}->CategoryGet( CategoryID => $CategoryID );
--- 1225,1229 ----
  
          # build public category hash
!         $Categories = {};
          for my $CategoryID (@PublicCategoryIDs) {
              my %Category = $Self->{FAQObject}->CategoryGet( CategoryID => $CategoryID );
***************
*** 1229,1233 ****
  
      $Frontend{CategoryOption} = $Self->{LayoutObject}->AgentFAQCategoryListOption(
!         CategoryList        => { %{$Categories} },
          Size                => 5,
          Name                => 'CategoryIDs',
--- 1233,1237 ----
  
      $Frontend{CategoryOption} = $Self->{LayoutObject}->AgentFAQCategoryListOption(
!         CategoryList        => $Categories,
          Size                => 5,
          Name                => 'CategoryIDs',


More information about the cvs-log mailing list