Просмотр исходного кода

#3476 Alert for serviceAccountProfileSwitcher

RomanL 5 лет назад
Родитель
Сommit
21cee87c33
1 измененных файлов с 11 добавлено и 0 удалено
  1. 11 0
      template/scripts/BxBaseServiceProfiles.php

+ 11 - 0
template/scripts/BxBaseServiceProfiles.php

@@ -399,6 +399,17 @@ class BxBaseServiceProfiles extends BxDol
         $aVars = array (
         $aVars = array (
             'bx_repeat:row' => array(),
             'bx_repeat:row' => array(),
         );
         );
+        
+        bx_alert('system', 'account_profile_switcher', 0, false, array(
+            'account_id' => $iAccountId,
+            'active_profile_id' => &$iActiveProfileId,
+            'url_profile_action' => &$sUrlProfileAction,
+            'show_all' => &$bShowAll,
+            'button_title' => &$sButtonTitle,
+            'profile_template' => &$sProfileTemplate,
+            'profiles' => &$aProfiles
+        ));
+        
         foreach ($aProfiles as $aProfile) {
         foreach ($aProfiles as $aProfile) {
             if (!$bShowAll && $iActiveProfileId == $aProfile['id'])
             if (!$bShowAll && $iActiveProfileId == $aProfile['id'])
                 continue;
                 continue;