Преглед изворни кода

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

jqh пре 4 година
родитељ
комит
f9a66578eb
1 измењених фајлова са 1 додато и 1 уклоњено
  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);
     }
 
     /**