[otrs-cvs] otrs/Kernel/Modules CustomerTicketSearch.pm,1.31,1.32
CVS commits notifications of OTRS.org
cvs-log at otrs.org
Tue Apr 29 22:53:37 GMT 2008
Comments:
Update of /home/cvs/otrs/Kernel/Modules
In directory lancelot:/tmp/cvs-serv6721/Kernel/Modules
Modified Files:
CustomerTicketSearch.pm
Log Message:
Added option to use full text search.
Author: martin
Index: CustomerTicketSearch.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/CustomerTicketSearch.pm,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** CustomerTicketSearch.pm 11 Apr 2008 22:30:29 -0000 1.31
--- CustomerTicketSearch.pm 29 Apr 2008 22:53:32 -0000 1.32
***************
*** 73,78 ****
# check request
if ( $Self->{ParamObject}->GetParam( Param => 'SearchTemplate' ) && $Self->{Profile} ) {
! return $Self->{LayoutObject}->Redirect( OP =>
! "Action=CustomerTicketSearchSubaction=Search&TakeLastSearch=1&SaveProfile=1&Profile=$Self->{Profile}",
);
}
--- 73,78 ----
# check request
if ( $Self->{ParamObject}->GetParam( Param => 'SearchTemplate' ) && $Self->{Profile} ) {
! return $Self->{LayoutObject}->Redirect(
! OP => "Action=CustomerTicketSearchSubaction=Search&TakeLastSearch=1&SaveProfile=1&Profile=$Self->{Profile}",
);
}
***************
*** 347,355 ****
my $Counter = 0;
my @ViewableIDs = $Self->{TicketObject}->TicketSearch(
! Result => 'ARRAY',
! SortBy => $Self->{SortBy},
! OrderBy => $Self->{Order},
! Limit => $Self->{SearchLimit},
! CustomerUserID => $Self->{UserID},
%GetParam,
);
--- 347,357 ----
my $Counter = 0;
my @ViewableIDs = $Self->{TicketObject}->TicketSearch(
! Result => 'ARRAY',
! SortBy => $Self->{SortBy},
! OrderBy => $Self->{Order},
! Limit => $Self->{SearchLimit},
! CustomerUserID => $Self->{UserID},
! ConditionInline => $Self->{Config}->{ExtendedSearchCondition},
! FullTextIndex => 1,
%GetParam,
);
***************
*** 412,418 ****
}
$Param{StatusTable} .= $Self->MaskCSVResult( %Data, %UserInfo,
! AccountedTime =>
! $Self->{TicketObject}->TicketAccountedTimeGet( TicketID => $_ ), )
! . "\n";
}
else {
--- 414,418 ----
}
$Param{StatusTable} .= $Self->MaskCSVResult( %Data, %UserInfo,
! AccountedTime => $Self->{TicketObject}->TicketAccountedTimeGet( TicketID => $_ ), ) . "\n";
}
else {
***************
*** 454,459 ****
AllHits => $Counter,
Action => "Action=CustomerTicketSearch&Subaction=Search",
! Link =>
! "Profile=$Self->{Profile}&SortBy=$Self->{SortBy}&Order=$Self->{Order}&TakeLastSearch=1&",
);
--- 454,458 ----
AllHits => $Counter,
Action => "Action=CustomerTicketSearch&Subaction=Search",
! Link => "Profile=$Self->{Profile}&SortBy=$Self->{SortBy}&Order=$Self->{Order}&TakeLastSearch=1&",
);
***************
*** 480,488 ****
# return csv to download
my $CSVFile = 'search';
! my ( $Sec, $Min, $Hour, $Day, $Month, $Year )
! = $Self->{TimeObject}
! ->SystemTime2Date( SystemTime => $Self->{TimeObject}->SystemTime(), );
return $Self->{LayoutObject}->Attachment(
! Filename => $CSVFile . "_" . "$Year-$Month-$Day" . "_" . "$Hour-$Min.csv",
ContentType => "text/csv",
Content => $Param{StatusTable},
--- 479,487 ----
# return csv to download
my $CSVFile = 'search';
! my ( $Sec, $Min, $Hour, $Day, $Month, $Year ) = $Self->{TimeObject}->SystemTime2Date(
! SystemTime => $Self->{TimeObject}->SystemTime(),
! );
return $Self->{LayoutObject}->Attachment(
! Filename => $CSVFile . '_' . "$Year-$Month-$Day" . '_' . "$Hour-$Min.csv",
ContentType => "text/csv",
Content => $Param{StatusTable},
More information about the cvs-log
mailing list