From 3683fd4d829fc34121689709fed491f4c7353066 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 25 Jan 2015 00:56:16 +0100 Subject: Fix hash returned by MappingList. The keys in the hash returnged by MappingList should by the IDs of the other element type and not the ID of the mapping. --- Kernel/System/DefaultRecipient.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/System/DefaultRecipient.pm b/Kernel/System/DefaultRecipient.pm index d9b72d6..b8eb26c 100644 --- a/Kernel/System/DefaultRecipient.pm +++ b/Kernel/System/DefaultRecipient.pm @@ -342,7 +342,7 @@ sub MappingList { my %Mapping; while ( my @Data = $DBObject->FetchrowArray() ) { - $Mapping{ $Data[0] } = $Data[1]; + $Mapping{ $Data[1] } = $Data[0]; } return %Mapping; -- cgit v1.2.3-1-g7c22