From 04f12215bc47909046dcf0ff422ec857a2beff77 Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Sat, 7 Oct 2017 00:36:30 +0300 Subject: [PATCH] TT#22505 TT#21271 Fix subscribers API so get2put works Change-Id: I4d5e2abfe96b147362f22d9f715198cf0bd7731a (cherry picked from commit 4dc630cd270f4976a99f958aff98def27d549413) --- lib/NGCP/Panel/Role/API/Subscribers.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/NGCP/Panel/Role/API/Subscribers.pm b/lib/NGCP/Panel/Role/API/Subscribers.pm index ae6a49610b..b23ee197fc 100644 --- a/lib/NGCP/Panel/Role/API/Subscribers.pm +++ b/lib/NGCP/Panel/Role/API/Subscribers.pm @@ -130,6 +130,8 @@ sub resource_from_item { if($pref->first and length($pref->first->value) > 0) { #cast to Numeric accordingly to the form field type and customer note in the ticket #10313 $resource{lock} = $pref->first->value; + }else{ + $resource{lock} = undef; } } else { # fields we never want to see