Skip to content

Commit

Permalink
Laravel 6 bugfixes (#4388)
Browse files Browse the repository at this point in the history
* Change faulty route-usage

* Remove non-existing multilingual.js from read-view

This file is included from the main app.js already and doesn't exist in /published
  • Loading branch information
emptynick authored Sep 9, 2019
1 parent 321f4dd commit dda0773
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion resources/views/bread/browse.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@

var deleteFormAction;
$('td').on('click', '.delete', function (e) {
$('#delete_form')[0].action = '{{ route('voyager.'.$dataType->slug.'.destroy', ['id' => '__id']) }}'.replace('__id', $(this).data('id'));
$('#delete_form')[0].action = '{{ route('voyager.'.$dataType->slug.'.destroy', '__id') }}'.replace('__id', $(this).data('id'));
$('#delete_modal').modal('show');
});

Expand Down
1 change: 0 additions & 1 deletion resources/views/bread/read.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@
$('.side-body').multilingual();
});
</script>
<script src="{{ voyager_asset('js/multilingual.js') }}"></script>
@endif
<script>
var deleteFormAction;
Expand Down
2 changes: 1 addition & 1 deletion resources/views/tools/bread/edit-add.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{{ $display_name }}
</a>
@else
<a href="{{ route('voyager.bread.create', ['name' => $table]) }}">
<a href="{{ route('voyager.bread.create', $table) }}">
{{ $display_name }}
</a>
@endif
Expand Down
4 changes: 2 additions & 2 deletions resources/views/tools/bread/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class="btn btn-danger btn-sm delete">
<i class="voyager-trash"></i> {{ __('voyager::generic.delete') }}
</a>
@else
<a href="{{ route('voyager.bread.create', ['name' => $table->name]) }}"
<a href="{{ route('voyager.bread.create', $table->name) }}"
class="_btn btn-default btn-sm pull-right">
<i class="voyager-plus"></i> {{ __('voyager::bread.add_bread') }}
</a>
Expand All @@ -74,7 +74,7 @@ class="_btn btn-default btn-sm pull-right">
<h4 class="modal-title"><i class="voyager-trash"></i> {!! __('voyager::bread.delete_bread_quest', ['table' => '<span id="delete_builder_name"></span>']) !!}</h4>
</div>
<div class="modal-footer">
<form action="{{ route('voyager.bread.delete', ['id' => null]) }}" id="delete_builder_form" method="POST">
<form action="{{ route('voyager.bread.delete', '') }}" id="delete_builder_form" method="POST">
{{ method_field('DELETE') }}
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<input type="submit" class="btn btn-danger" value="{{ __('voyager::bread.delete_bread_conf') }}">
Expand Down
2 changes: 1 addition & 1 deletion resources/views/tools/database/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class="btn-sm btn-danger delete">
{{ __('voyager::bread.delete_bread') }}
</a>
@else
<a href="{{ route('voyager.bread.create', ['name' => $table->name]) }}"
<a href="{{ route('voyager.bread.create', $table->name) }}"
class="btn-sm btn-default">
<i class="voyager-plus"></i> {{ __('voyager::bread.add_bread') }}
</a>
Expand Down

0 comments on commit dda0773

Please sign in to comment.