diff --git a/lib/NGCP/Panel/Role/API/Preferences.pm b/lib/NGCP/Panel/Role/API/Preferences.pm index 0e7fe37897..6d66da1a22 100644 --- a/lib/NGCP/Panel/Role/API/Preferences.pm +++ b/lib/NGCP/Panel/Role/API/Preferences.pm @@ -167,7 +167,10 @@ sub get_resource { if($attr && !$profile_attrs{$pref->attribute->id}) { $processed = 1; last SWITCH; } - last SWITCH if($pref->attribute->internal != 0); + if($pref->attribute->internal != 0) { + $processed = 1; + last SWITCH; + } } # SWITCH next if $processed;