File otrs-2.2-OSA-2010-01.diff of Package otrs
Index: Kernel/System/Ticket.pm
===================================================================
--- Kernel/System/Ticket.pm.orig
+++ Kernel/System/Ticket.pm
@@ -3142,7 +3142,7 @@ sub TicketSearch {
if ($Exists) {
$SQLExt .= ",";
}
- $SQLExt .= $Self->{DBObject}->Quote($_);
+ $SQLExt .= $Self->{DBObject}->Quote($_, 'Integer');
$Exists = 1;
}
$SQLExt .= ")";
@@ -3168,7 +3168,7 @@ sub TicketSearch {
if ($Exists) {
$SQLExt .= ",";
}
- $SQLExt .= $Self->{DBObject}->Quote($_);
+ $SQLExt .= $Self->{DBObject}->Quote($_, 'Integer');
$Exists = 1;
}
$SQLExt .= ") AND th.history_type_id = $ID ";
@@ -3194,7 +3194,7 @@ sub TicketSearch {
if ($Exists) {
$SQLExt .= ",";
}
- $SQLExt .= $Self->{DBObject}->Quote($_);
+ $SQLExt .= $Self->{DBObject}->Quote($_, 'Integer');
$Exists = 1;
}
$SQLExt .= ")";
@@ -3221,7 +3221,7 @@ sub TicketSearch {
if ($Exists) {
$SQLExt .= ",";
}
- $SQLExt .= $Self->{DBObject}->Quote($_);
+ $SQLExt .= $Self->{DBObject}->Quote($_, 'Integer');
$Exists = 1;
}
$SQLExt .= ") AND th.history_type_id = $ID ";
@@ -3282,7 +3282,7 @@ sub TicketSearch {
if ($Exists) {
$SQLExt .= ",";
}
- $SQLExt .= $Self->{DBObject}->Quote($_);
+ $SQLExt .= $Self->{DBObject}->Quote($_, 'Integer');
$Exists = 1;
}
$SQLExt .= ")";
@@ -3295,7 +3295,7 @@ sub TicketSearch {
if ($Exists) {
$SQLExt .= ",";
}
- $SQLExt .= $Self->{DBObject}->Quote($_);
+ $SQLExt .= $Self->{DBObject}->Quote($_, 'Integer');
$Exists = 1;
}
$SQLExt .= ")";
@@ -3308,7 +3308,7 @@ sub TicketSearch {
if ($Exists) {
$SQLExt .= ",";
}
- $SQLExt .= $Self->{DBObject}->Quote($_);
+ $SQLExt .= $Self->{DBObject}->Quote($_, 'Integer');
$Exists = 1;
}
$SQLExt .= ")";
@@ -3323,7 +3323,7 @@ sub TicketSearch {
if ($Exists) {
$SQLExt .= ",";
}
- $SQLExt .= $Self->{DBObject}->Quote($_);
+ $SQLExt .= $Self->{DBObject}->Quote($_, 'Integer');
$Exists = 1;
}
$SQLExt .= ") AND th.history_type_id = $ID ";
@@ -3362,7 +3362,7 @@ sub TicketSearch {
if ($Exists) {
$SQLExt .= ",";
}
- $SQLExt .= $Self->{DBObject}->Quote($_);
+ $SQLExt .= $Self->{DBObject}->Quote($_, 'Integer');
$Exists = 1;
}
$SQLExt .= ")";
@@ -3388,7 +3388,7 @@ sub TicketSearch {
if ($Exists) {
$SQLExt .= ",";
}
- $SQLExt .= $Self->{DBObject}->Quote($_);
+ $SQLExt .= $Self->{DBObject}->Quote($_, 'Integer');
$Exists = 1;
}
$SQLExt .= ") AND th.history_type_id = $ID ";
@@ -3465,7 +3465,7 @@ sub TicketSearch {
if ($Exists) {
$SQLExt .= ",";
}
- $SQLExt .= $Self->{DBObject}->Quote($_);
+ $SQLExt .= $Self->{DBObject}->Quote($_, 'Integer');
$Exists = 1;
}
$SQLExt .= ")";
@@ -3492,7 +3492,7 @@ sub TicketSearch {
if ($Exists) {
$SQLExt .= ",";
}
- $SQLExt .= $Self->{DBObject}->Quote($_);
+ $SQLExt .= $Self->{DBObject}->Quote($_, 'Integer');
$Exists = 1;
}
$SQLExt .= ") AND th.history_type_id = $ID ";
@@ -3518,7 +3518,7 @@ sub TicketSearch {
if ($Exists) {
$SQLExt .= ",";
}
- $SQLExt .= $Self->{DBObject}->Quote($_);
+ $SQLExt .= $Self->{DBObject}->Quote($_, 'Integer');
$Exists = 1;
}
$SQLExt .= ")";
@@ -3543,7 +3543,7 @@ sub TicketSearch {
if ($Exists) {
$SQLExt .= ",";
}
- $SQLExt .= $Self->{DBObject}->Quote($_);
+ $SQLExt .= $Self->{DBObject}->Quote($_, 'Integer');
$Exists = 1;
}
$SQLExt .= ")";
@@ -3556,7 +3556,7 @@ sub TicketSearch {
if ($Exists) {
$SQLExt .= ",";
}
- $SQLExt .= $Self->{DBObject}->Quote($_);
+ $SQLExt .= $Self->{DBObject}->Quote($_, 'Integer');
$Exists = 1;
}
$SQLExt .= ")";