MT#56286 render all subscriber profiles with prof_pref = 1

* on the subscriber profile preferences page, only preferences
  that had enabled attributes plus had prof_pref = 1 were shown.
  that caused confusions as subscriber profile attributes are
  rendered from exposed_to_customer = 1 and do not use the
  prof_pref flag, whereas the rendered preferences do not
  use the expose_to_customer flag and use prof_pref = 1 instead.
  now to avoid the confusions, all voip_preferences that are not
  internal and have prof_pref = 1, shown in on the preferences page
  (and accessible via API). if the list needs to be reduced, then
  it must be properly  done by removing the prof_pref flag for
  them.

Change-Id: I7f2428e319d2c8d322ee5e4efd96615178c1f3ef
mr11.2
Kirill Solomko 3 years ago
parent 45d9fb34b5
commit b838c5d0e7

@ -1279,12 +1279,6 @@ sub load_preference_list {
}, {
prefetch => {'voip_preferences' => 'voip_preferences_enums'},
});
if($prof_pref) {
my @prof_attributes = $profile->profile_attributes->get_column('attribute_id')->all;
$pref_rs = $pref_rs->search({
'voip_preferences.id' => { in => \@prof_attributes }
});
}
if($search_conditions) {
if('ARRAY' eq ref $search_conditions){
$pref_rs = $pref_rs->search(@$search_conditions);

Loading…
Cancel
Save