9f36c012 by Carlos Rodriguez

Follow-up fix for: TicketNumber generators uses TicketCheckNumber() in a wrong way (bug#12723).

1 parent e9217240
......@@ -77,7 +77,7 @@ sub TicketCreateNumber {
my $Tn = $SystemID . $Count;
# Check ticket number. If exists generate new one!
if ( $Kernel::OM->Get('Kernel::System::Ticket')->TicketNumberLookup( Tn => $Tn ) ) {
if ( $Kernel::OM->Get('Kernel::System::Ticket')->TicketIDLookup( TicketNumber => $Tn ) ) {
$Self->{LoopProtectionCounter}++;
......
......@@ -84,7 +84,7 @@ sub TicketCreateNumber {
my $Tn = $Year . $Month . $Day . $SystemID . $Count;
# Check ticket number. If exists generate new one!
if ( $Kernel::OM->Get('Kernel::System::Ticket')->TicketNumberLookup( Tn => $Tn ) ) {
if ( $Kernel::OM->Get('Kernel::System::Ticket')->TicketIDLookup( TicketNumber => $Tn ) ) {
$Self->{LoopProtectionCounter}++;
......
......@@ -121,7 +121,7 @@ sub TicketCreateNumber {
$Tn = $Tn . $ChkSum;
# Check ticket number. If exists generate new one!
if ( $Kernel::OM->Get('Kernel::System::Ticket')->TicketNumberLookup( Tn => $Tn ) ) {
if ( $Kernel::OM->Get('Kernel::System::Ticket')->TicketIDLookup( TicketNumber => $Tn ) ) {
$Self->{LoopProtectionCounter}++;
......
......@@ -45,7 +45,7 @@ sub TicketCreateNumber {
my $Tn = $SystemID . $Count;
# Check ticket number. If exists generate new one!
if ( $Kernel::OM->Get('Kernel::System::Ticket')->TicketNumberLookup( Tn => $Tn ) ) {
if ( $Kernel::OM->Get('Kernel::System::Ticket')->TicketIDLookup( TicketNumber => $Tn ) ) {
$Self->{LoopProtectionCounter}++;
......