From e904525e9dc0429f83ad0bfb93371076b01e7324 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 21 Jan 2015 02:47:55 +0100 Subject: DefaultTo: Remove additional information in Get() DefaultTo->Get() returned the name and id of the assigned templates. This could be replaced with a call of MappingList( DefautlTo => $ID) and is therefore removed from Get(). --- Kernel/System/DefaultTo.pm | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/Kernel/System/DefaultTo.pm b/Kernel/System/DefaultTo.pm index 7a1257b..c033189 100644 --- a/Kernel/System/DefaultTo.pm +++ b/Kernel/System/DefaultTo.pm @@ -142,31 +142,6 @@ sub Get { ); } - # make sure we have a valid object - return unless %DefaultTo; - - # get the assigned responses - return if !$Self->{DBObject}->Prepare( - SQL => 'SELECT id, response_id ' - . 'FROM response_change_default_to_response ' - . 'WHERE response_change_default_to_id = ?', - Bind => [ \$DefaultTo{ID} ], - ); - - while ( my @Data = $Self->{DBObject}->FetchrowArray() ) { - my $Response = - $Self->{StandardTemplateObject}->StandardTemplateLookup( - StandardTemplateID => $Data[1], - ); - - if ( $Response ) { - $DefaultTo{Responses}->{$Data[0]} = { - ID => $Data[1], - Name => $Response, - }; - } - } - return %DefaultTo; } -- cgit v1.2.3-1-g7c22