diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2015-01-21 02:47:55 +0100 |
---|---|---|
committer | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2015-01-21 03:16:45 +0100 |
commit | e904525e9dc0429f83ad0bfb93371076b01e7324 (patch) | |
tree | e583572d51a5c632255263e1b85f7556eeae6f65 /Kernel | |
parent | fcdc19f698f46ad9d92e3a50a59b5ac34afd37a1 (diff) | |
download | DefaultRecipient-e904525e9dc0429f83ad0bfb93371076b01e7324.tar.gz DefaultRecipient-e904525e9dc0429f83ad0bfb93371076b01e7324.tar.bz2 DefaultRecipient-e904525e9dc0429f83ad0bfb93371076b01e7324.zip |
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().
Diffstat (limited to 'Kernel')
-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; } |