[otrs-cvs] CVS: ITSMCMDB/Kernel/Modules AgentITSMCMDB.pm,1.38,1.39

cvs-log at otrs.org cvs-log at otrs.org
Fri Nov 3 09:04:39 CET 2006


Update of /home/cvs/ITSMCMDB/Kernel/Modules
In directory lancelot:/tmp/cvs-serv6394/Kernel/Modules

Modified Files:
	AgentITSMCMDB.pm 
Log Message:
improved search function

Index: AgentITSMCMDB.pm
===================================================================
RCS file: /home/cvs/ITSMCMDB/Kernel/Modules/AgentITSMCMDB.pm,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -r1.38 -r1.39
*** AgentITSMCMDB.pm	2 Nov 2006 15:09:37 -0000	1.38
--- AgentITSMCMDB.pm	3 Nov 2006 08:04:37 -0000	1.39
***************
*** 414,418 ****
              my %AttributesData;
              foreach my $Key (@Attributes) {
!                 $AttributesData{$Key} = $Self->{ParamObject}->GetParam(Param => "$Key");
  
                  # generate input field
--- 414,422 ----
              my %AttributesData;
              foreach my $Key (@Attributes) {
!                 # get search string
!                 my $SearchString = $Self->{ParamObject}->GetParam(Param => "$Key");
!                 if ($SearchString) {
!                     $AttributesData{$Key} = $SearchString;
!                 }
  
                  # generate input field
***************
*** 432,442 ****
                  );
              }
!             $Search = 1;
          }
  
          # output search result
          if ($Search) {
              my @SearchResult = $Self->{ITSMCMDBObject}->RecordSearch(
                  ConfigItem => $ConfigItem,
              );
  
--- 436,451 ----
                  );
              }
! 
!             if (%AttributesData) {
!                 $Search = 1;
!             }
          }
  
          # output search result
          if ($Search) {
+ 
              my @SearchResult = $Self->{ITSMCMDBObject}->RecordSearch(
                  ConfigItem => $ConfigItem,
+ 
              );
  



More information about the cvs-log mailing list