Explorar el Código

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

jqh hace 4 años
padre
commit
f9a66578eb
Se han modificado 1 ficheros con 1 adiciones y 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);
     }
 
     /**