Browse Source

Ticket #4626 - Alert for Create Account form.

AntonLV 2 years ago
parent
commit
ef1b6d3bf9
1 changed files with 7 additions and 1 deletions
  1. 7 1
      template/scripts/BxBaseAccountForms.php

+ 7 - 1
template/scripts/BxBaseAccountForms.php

@@ -25,7 +25,13 @@ class BxBaseAccountForms extends BxDolProfileForms
 
     public function getObjectFormAdd ()
     {
-        return BxDolForm::getObjectInstance('sys_account', 'sys_account_create');
+        $oForm = BxDolForm::getObjectInstance('sys_account', 'sys_account_create');
+
+        bx_alert('account', 'add_form_get', 0, 0, [
+            'form_object' => &$oForm
+        ]);
+
+        return $oForm;
     }
 
     public function getObjectFormEdit ()