joway 2 سال پیش
والد
کامیت
82f4f5c844
2فایلهای تغییر یافته به همراه10 افزوده شده و 10 حذف شده
  1. 5 5
      common/models/forms/ApproachDeclarationForm.php
  2. 5 5
      common/models/forms/DeclarationForm.php

+ 5 - 5
common/models/forms/ApproachDeclarationForm.php

@@ -209,11 +209,11 @@ class ApproachDeclarationForm extends Model
                     //反转数组,in_array搜索错误
                     //in_array($this->decUserName, $this->_tempNetworkParentUser[$this->insertUserName]);
                     $flipParent = array_flip(array_filter($this->_tempNetworkParentUser[$this->insertUserName]));
-                    if (!isset($flipParent[$this->decUserName])) {
-                        //$this->addError($attribute, '为' . $this->insertUserName . '报单,报单中心' . $this->decUserName . '不在' . $this->insertUserName . '的安置网上级中');
-                        $this->addError($attribute, 'To' . $this->insertUserName . 'Entry, Stockist' . $this->decUserName . 'not in exist' . $this->insertUserName . 'in the placement superiors');
-                        return ;
-                    }
+//                    if (!isset($flipParent[$this->decUserName])) {
+//                        //$this->addError($attribute, '为' . $this->insertUserName . '报单,报单中心' . $this->decUserName . '不在' . $this->insertUserName . '的安置网上级中');
+//                        $this->addError($attribute, 'To' . $this->insertUserName . 'Entry, Stockist' . $this->decUserName . 'not in exist' . $this->insertUserName . 'in the placement superiors');
+//                        return ;
+//                    }
                 }
 
                 $this->_decId = $decUser['ID'];

+ 5 - 5
common/models/forms/DeclarationForm.php

@@ -210,11 +210,11 @@ class DeclarationForm extends Model
 //            var_dump($flipParent);
 //            echo $this->insertUserName.'=='.$this->decUserName;
 //            exit;
-                    if (!isset($flipParent[$this->decUserName])) {
-                        //$this->addError($attribute, '为' . $this->insertUserName . '报单,报单中心' . $this->decUserName . '不在' . $this->insertUserName . '的安置网上级中');
-                        $this->addError($attribute, 'To' . $this->insertUserName . 'Entry, Stockist' . $this->decUserName . 'not in exist' . $this->insertUserName . 'in the placement superiors');
-                        return;
-                    }
+//                    if (!isset($flipParent[$this->decUserName])) {
+//                        //$this->addError($attribute, '为' . $this->insertUserName . '报单,报单中心' . $this->decUserName . '不在' . $this->insertUserName . '的安置网上级中');
+//                        $this->addError($attribute, 'To' . $this->insertUserName . 'Entry, Stockist' . $this->decUserName . 'not in exist' . $this->insertUserName . 'in the placement superiors');
+//                        return;
+//                    }
                 }
                 $this->_decId = $decUser['ID'];
             }