You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@strtob The problem for me was that the model generated by Gii overwrited the rules() method. Just remove the rules() method from your generated model, and leave the validation for the extension.
If you generate the model, the following rules are generated:
The TreeTrait treats some of these integer fields as boolean (for example: $child->active = true;), and the validation will fail because of the integer rule. So removing the unnecessary rules() method from your model solves the problem.
@kartik-v I think there is indeed an undefined variable in the TreeTrait. There is an extract before this (extract($module->treeStructure);), but the keyAttribute, and nameAttribute is declared in the $module->dataStructure array.
when i try to delete node it shows error msg : Undefined variable: keyAttribute
The text was updated successfully, but these errors were encountered: