MT#10315 Cast lock to the numeric value as stated by API doc.

API doc takes type from the form field type definition.

Change-Id: I0c9fb0de2f261baac7a364c4845e861c5e378b76
changes/31/831/1
Irina Peshinskaya 11 years ago
parent 1974d2f7fb
commit e388e6f6b1

@ -99,7 +99,8 @@ sub resource_from_item {
c => $c, attribute => 'lock',
prov_subscriber => $item->provisioning_voip_subscriber);
if($pref->first) {
$resource{lock} = $pref->first->value;
#cast to Numeric accordingly to the form field type and customer note in the ticket #10313
$resource{lock} = 0 + $pref->first->value;
}
$resource{customer_id} = int(delete $resource{contract_id});

Loading…
Cancel
Save