1
0
Эх сурвалжийг харах

#3864 - Attendant: don't show popup after account creation

roman.lesnikov@gmail.com 4 жил өмнө
parent
commit
5ccbd30783

+ 4 - 1
modules/boonex/attendant/classes/BxAttendantModule.php

@@ -191,11 +191,14 @@ class BxAttendantModule extends BxDolModule
         $sRv = '';
         $sDefaultEvent = getParam('bx_attendant_on_profile_event_list');
         $oProfile = BxDolProfile::getInstance($aEvent['profile_id']);
+		print_r($aEvent['profile_id']);
         $oAccount = $oProfile ? $oProfile->getAccountObject() : null;
         $bNeedRaiseEvent = false;
         if ($aEvent['event'] == 'add' && $aEvent['module'] == 'profile'){
             if (getParam('bx_attendant_on_profile_creation_modules') != '' && ($sDefaultEvent == BX_ATTENDANT_ON_PROFILE_CREATION_EVENT_AFTER_REGISTRATION || ($sDefaultEvent == BX_ATTENDANT_ON_PROFILE_CREATION_EVENT_AFTER_CONFIRMATION  && $oAccount != null &&  $oAccount->isConfirmed()))){
-                $bNeedRaiseEvent = true;
+                if ($oProfile->getModule() != 'system'){
+                    $bNeedRaiseEvent = true;
+                }
             }
         }
         else{