kartik-v / yii2-tree-manager

An advanced tree management module using nested sets for Yii 2.
http://demos.krajee.com/tree-manager
Other
150 stars 107 forks source link

CVS repo and different branch "Invalid request signature detected during tree data manage action! Please refresh the page and retry." #234

Closed v4ssi404 closed 5 years ago

v4ssi404 commented 5 years ago

Prerequisites

Steps to reproduce the issue

  1. Fork Yii2-tree-manager,
  2. Create branch for the new feature
  3. Use VCS repo with the feature branch in the main project ` { "type": "vcs", "url": "https://github.com/sviluppo/yii2-tree-manager.git" }

    "kartik-v/yii2-tree-manager": "dev-add-option-to-select-only-leaves", `

  4. Cleared Yii2 web/assets cache
  5. Cleared browser cache
  6. Checked that the TreeView::widget it's not inside an ActiveForm

Expected behavior and actual behavior

When I follow those steps, I see...

OLD HASH:
8c2d388db6e838f7ef5c28d4ceb8ea9b98678e40bdae24ce666d10cf0f09ca12common\models\adb\CompanyCategorybtn-default/treemanager/node/save/company/categories@backend/themes/adminlte/treeview/views/_formw4-nodeselnodonodi<div class="kv-node-message">No valid nodi are available for display. Use toolbar buttons to add nodi.</div>111{"id":"w4-nodeform"}{"1":"","2":"@backend/themes/adminlte/views/company/partials/_extra-fields","3":"","4":"","5":""}{"submit":"<i class=\"glyphicon glyphicon-floppy-disk\"></i>","reset":"<i class=\"glyphicon glyphicon-repeat\"></i>"}a:0:{}[]"none"{"depth":"","glue":" &raquo; ","activeCss":"kv-crumb-active","untitled":"Senza titolo"}
NEW HASH:
a366818152ca62060b4303892336ef2cd1ea2f323b4768c16786a58f8875fc93common\models\adb\CompanyCategorybtn-default/treemanager/node/save/company/categories@backend/themes/adminlte/treeview/views/_formw4-nodeselnodonodi<div class="kv-node-message">No valid nodi are available for display. Use toolbar buttons to add nodi.</div>111{"id":"w4-nodeform"}{"1":"","2":"@backend/themes/adminlte/views/company/partials/_extra-fields","3":"","4":"","5":""}{"submit":"<i class=\"glyphicon glyphicon-floppy-disk\"></i>","reset":"<i class=\"glyphicon glyphicon-repeat\"></i>"}[]"none"{"depth":"","glue":" &raquo; ","activeCss":"kv-crumb-active","untitled":"Senza titolo"}

I was expecting...

The TreeView::widget edit node form

Environment

Docker

Browsers

Operating System

Libraries

Isolating the problem

v4ssi404 commented 5 years ago

I've found the problem, i have extended TreeView class and i missed this line: 'nodeViewParams' => serialize($this->nodeViewParams),