{"action":"opened","issue":{"url":"https://api.github.com/repos/kartik-v/yii2-tree-manager/issues/64","labels_url":"https://api.github.com/repos/kartik-v/yii2-tree-manager/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/kartik-v/yii2-tree-manager/issues/64/comments","events_url":"https://api.github.com/repos/kartik-v/yii2-tree-manager/issues/64/events","html_url":"https://github.com/kartik-v/yii2-tree-manager/issues/64","id":99004189,"number":64,"title":"Adding new custom attribute renders only the field but does not save it","user":{"login":"saidbakr","id":467554,"avatar_url":"https://avatars.githubusercontent.com/u/467554?v=3","gravatar_id":"","url":"https://api.github.com/users/saidbakr","html_url":"https://github.com/saidbakr","followers_url":"https://api.github.com/users/saidbakr/followers","following_url":"https://api.github.com/users/saidbakr/following{/other_user}","gists_url":"https://api.github.com/users/saidbakr/gists{/gist_id}","starred_url":"https://api.github.com/users/saidbakr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saidbakr/subscriptions","organizations_url":"https://api.github.com/users/saidbakr/orgs","repos_url":"https://api.github.com/users/saidbakr/repos","events_url":"https://api.github.com/users/saidbakr/events{/privacy}","received_events_url":"https://api.github.com/users/saidbakr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-04T16:08:40Z","updated_at":"2015-08-04T16:08:40Z","closed_at":null,"body":"I followed exactly the [documentation](http://demos.krajee.com/tree-manager#module) to add new custom field `description` to the tree view but it only render the textarea without any saving for the description entry. It flashes message that it done!\r\n\r\nHere the view `@backend/views/categories/_treePart2`\r\n```\r\n<?php\r\nuse yii\\helpers\\Html;\r\n// Itried to use Html helper to solve the issue\r\necho $form->field($node, 'description')->textArea();\r\n```\r\nHere is the index action view:\r\n```\r\n<?php\r\n\r\nuse yii\\helpers\\Html;\r\nuse yii\\grid\\GridView;\r\nuse common\\models\\Categories;\r\nuse kartik\\tree\\TreeView;\r\nuse kartik\\tree\\Module;\r\n\r\n/* @var $this yii\\web\\View */\r\n/* @var $searchModel common\\models\\CategoriesSearch */\r\n/* @var $dataProvider yii\\data\\ActiveDataProvider */\r\n\r\n$this->title = Yii::t('app', 'Categories');\r\n$this->params['breadcrumbs'][] = $this->title;\r\n?>\r\n<div class=\"categories-index\">\r\n\r\n    <h1><?= Html::encode($this->title) ?></h1>\r\n    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>\r\n\r\n    <p>\r\n        <?= Html::a(Yii::t('app', 'Create Categories'), ['create'], ['class' => 'btn btn-success']) ?>\r\n    </p>\r\n\r\n    <?php /*= GridView::widget([\r\n        'dataProvider' => $dataProvider,\r\n        'filterModel' => $searchModel,\r\n        'columns' => [\r\n            ['class' => 'yii\\grid\\SerialColumn'],\r\n\r\n            'id',\r\n            'root',\r\n            'lft',\r\n            'rgt',\r\n            'lvl',\r\n            // 'name',\r\n            // 'description:ntext',\r\n            // 'icon',\r\n            // 'icon_type',\r\n            // 'active',\r\n            // 'selected',\r\n            // 'disabled',\r\n            // 'readonly',\r\n            // 'visible',\r\n            // 'collapsed',\r\n            // 'movable_u',\r\n            // 'movable_d',\r\n            // 'movable_l',\r\n            // 'movable_r',\r\n            // 'removable',\r\n            // 'removable_all',\r\n\r\n            ['class' => 'yii\\grid\\ActionColumn'],\r\n        ],\r\n    ]); */ ?>\r\n\t<?php\r\n\techo TreeView::widget([\r\n    // single query fetch to render the tree\r\n    // use the Product model you have in the previous step\r\n    'query' => Categories::find()->addOrderBy('root, lft'), \r\n    'headingOptions' => ['label' => 'Categories'],\r\n    'fontAwesome' => false,     // optional\r\n    'isAdmin' => true,         // optional (toggle to enable admin mode)\r\n    'displayValue' => 1,        // initial display value\r\n    'softDelete' => true,       // defaults to true\r\n\t'nodeAddlViews' => [Module::VIEW_PART_2 => '@backend/views/categories/_treePart2'], \t\r\n    'cacheSettings' => [        \r\n        'enableCache' => false   // defaults to true\r\n    ]\r\n\t\t\r\n]);\r\n\t?>\r\n\r\n</div>\r\n```\r\nAnd this is the model\r\n```\r\n<?php\r\n\r\nnamespace common\\models;\r\n\r\nuse Yii;\r\nuse creocoder\\nestedsets\\NestedSetsBehavior;\r\nuse kartik\\tree\\Module;\r\n\r\n\r\n \r\nclass Categories extends \\kartik\\tree\\models\\Tree\r\n{\r\n    /**\r\n     * @inheritdoc\r\n     */\r\n    public static function tableName()\r\n    {\r\n        return 'categories';\r\n    }    \r\n}\r\n```\r\n"}}