ryan 2 недель назад
Родитель
Сommit
8f1b635202

+ 3 - 0
common/models/forms/ApproachDeclarationForm.php

@@ -717,15 +717,18 @@ class ApproachDeclarationForm extends Model
                 }
 
                 if (!($zcResult = $this->addUser($allData))) {
+                    var_dump(1);
                     throw new Exception(Form::formatErrorsForApi($this->_userForm->getErrors()));
                 }
 
                 $decResult = $this->addDecOrder();
                 if (!$decResult) {
+                    var_dump(2);
                     throw new Exception(Form::formatErrorsForApi($decResult->getErrors()));
                 }
                 if($hasInstalment){
                     if(!($instalmentResult = $this->insertInstalment($zcResult))) {
+                        var_dump(3);
                         throw new Exception(Form::formatErrorsForApi('h'));
                     }
                 }

+ 1 - 2
common/models/forms/ApproachDeclarationLoopForm.php

@@ -210,8 +210,7 @@ class ApproachDeclarationLoopForm extends Model
                         }
                     }
                     $result = $model->add($this->data);
-                    var_dump($result);
-                    
+
                     if(!$result){
                         throw new Exception(Form::formatErrorsForApi($model->getErrors()));
                     }