summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2015-01-25 00:56:16 +0100
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2015-01-25 00:56:16 +0100
commit3683fd4d829fc34121689709fed491f4c7353066 (patch)
tree7d0f76f89fdaaae6e3374f0a137e596f2401f499
parentb3a42d6a3288331b826dfe5a47934073ba3b8caf (diff)
downloadDefaultRecipient-3683fd4d829fc34121689709fed491f4c7353066.tar.gz
DefaultRecipient-3683fd4d829fc34121689709fed491f4c7353066.tar.bz2
DefaultRecipient-3683fd4d829fc34121689709fed491f4c7353066.zip
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.
-rw-r--r--Kernel/System/DefaultRecipient.pm2
1 files changed, 1 insertions, 1 deletions
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;