Explorar o código

修复禁用treeStatus后无法保存父节点问题

jqh %!s(int64=4) %!d(string=hai) anos
pai
achega
f9a66578eb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Form/Field/Tree.php

+ 1 - 1
src/Form/Field/Tree.php

@@ -81,7 +81,7 @@ class Tree extends Field
     {
         $this->options['checkbox']['three_state'] = $value;
 
-        return $this;
+        return $this->exceptParentNode($value);
     }
 
     /**