From eb049fa910c48abaac63ad47103578343eef7dd8 Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Tue, 24 Mar 2015 14:09:27 +0200 Subject: [PATCH] MT#11147 Fix multi ranged field devices creation Change-Id: I7cdfccc443231f00cb14bb75ddaabcc919ca5095 (cherry picked from commit 8bc8c37a36da7d23802a6ca94f676c38d076a4fe) --- lib/NGCP/Panel/Controller/Device.pm | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/lib/NGCP/Panel/Controller/Device.pm b/lib/NGCP/Panel/Controller/Device.pm index ed04db3f11..855a958093 100644 --- a/lib/NGCP/Panel/Controller/Device.pm +++ b/lib/NGCP/Panel/Controller/Device.pm @@ -1020,17 +1020,19 @@ sub get_annotated_info :Privat { foreach(qw/front_image mac_image/){ delete $device_info->{$_}; } + use Data::Dumper; my $gather_ranges_info = sub { my $rs = shift; - return [ - { map { - $_->get_inflated_columns, - 'annotations' => [ - map {{ - $_->get_inflated_columns, - }} $_->annotations->all, - ], - } $rs->all } + return [ map { + { + $_->get_inflated_columns, + 'annotations' => [ + map {{ + $_->get_inflated_columns, + }} $_->annotations->all, + ], + } + }$rs->all ]; }; my $data = {