Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
z-song committed Mar 7, 2020
1 parent 15dae46 commit 198cbb7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"keywords": ["laravel", "admin", "grid", "form"],
"homepage": "https://github.com/z-song/laravel-admin",
"license": "MIT",
"version": "v1.7.12",
"version": "v1.7.13",
"authors": [
{
"name": "zsong",
Expand Down
2 changes: 1 addition & 1 deletion src/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Admin
*
* @var string
*/
const VERSION = '1.7.12';
const VERSION = '1.7.13';

/**
* @var Navbar
Expand Down
3 changes: 2 additions & 1 deletion src/Traits/ModelTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Encore\Admin\Traits;

use Encore\Admin\Tree;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\DB;
Expand Down Expand Up @@ -310,7 +311,7 @@ protected static function boot()

Request::offsetUnset('_order');

static::tree()->saveOrder($order);
(new Tree(new static()))->saveOrder($order);

return false;
}
Expand Down

0 comments on commit 198cbb7

Please sign in to comment.