Skip to content

Commit

Permalink
Merge pull request #31 from novius/bugfix/treeElementFunction-0.2
Browse files Browse the repository at this point in the history
[0.2] Fix reoder anonymous function
  • Loading branch information
jguyomard authored Dec 12, 2017
2 parents 6bcdcb7 + ea3d115 commit 91929b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/reorder.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

@section('content')
<?php
$treeElementFunction = function ($entry, $key, $all_entries, $crud) use ($treeElementFunction) {
$treeElementFunction = function ($entry, $key, $all_entries, $crud) use (&$treeElementFunction) {
if (!isset($entry->tree_element_shown)) {
// mark the element as shown
$all_entries[$key]->tree_element_shown = true;
Expand Down Expand Up @@ -91,4 +91,4 @@
</div><!-- /.box -->
</div>
</div>
@endsection
@endsection

0 comments on commit 91929b8

Please sign in to comment.