diff options
Diffstat (limited to 'Kernel/System')
-rw-r--r-- | Kernel/System/DefaultTo.pm | 25 |
1 files changed, 0 insertions, 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; } |