|
|
|
@ -127,9 +127,9 @@ sub resource_from_item {
|
|
|
|
c => $c, attribute => 'lock',
|
|
|
|
c => $c, attribute => 'lock',
|
|
|
|
prov_subscriber => $item->provisioning_voip_subscriber);
|
|
|
|
prov_subscriber => $item->provisioning_voip_subscriber);
|
|
|
|
$resource{lock} = 0;
|
|
|
|
$resource{lock} = 0;
|
|
|
|
if($pref->first) {
|
|
|
|
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
|
|
|
|
#cast to Numeric accordingly to the form field type and customer note in the ticket #10313
|
|
|
|
$resource{lock} += $pref->first->value;
|
|
|
|
$resource{lock} = $pref->first->value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
# fields we never want to see
|
|
|
|
# fields we never want to see
|
|
|
|
|