From 828a23a7ebcdd37b36b8d3edef27ab8e324c7651 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 20 Jan 2015 00:48:37 +0100 Subject: ResponseChangeDefaultTo: Fix wrong Mapping If you List the mapping, you would expect that the ids of the mappings are the keys of the returned hash and the ids of mapped objects (dependent on the parameters either the response ids or the id of the ResponseChangeDefaultTo objects) are the values. This fixes this assumption. --- Kernel/System/ResponseChangeDefaultTo.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/System/ResponseChangeDefaultTo.pm b/Kernel/System/ResponseChangeDefaultTo.pm index f35c91f..123bdbf 100644 --- a/Kernel/System/ResponseChangeDefaultTo.pm +++ b/Kernel/System/ResponseChangeDefaultTo.pm @@ -330,7 +330,7 @@ sub MappingList { } while ( my @Data = $Self->{DBObject}->FetchrowArray() ) { - $Mapping{ $Data[1] }->{MappingID} = $Data[0]; + $Mapping{ $Data[0] }->{MappingID} = $Data[1]; } return %Mapping; -- cgit v1.2.3-1-g7c22