From 3e2a32a722ba68a248a8edbcdf0e9334532e6c42 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 29 Apr 2015 23:24:48 +0200 Subject: Result: JSON: Return the cleaned up hash, not the original... --- lib/Travel/Status/DE/IRIS/Result.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Travel/Status/DE/IRIS/Result.pm b/lib/Travel/Status/DE/IRIS/Result.pm index daeb4b6..372e47c 100644 --- a/lib/Travel/Status/DE/IRIS/Result.pm +++ b/lib/Travel/Status/DE/IRIS/Result.pm @@ -732,7 +732,7 @@ sub TO_JSON { delete $copy{replaced_by}; delete $copy{replacement_for}; - return { %{$self} }; + return { %copy }; } 1; -- cgit v1.2.3