Variable names conflicts in body of datagrid causing view action to producce exception is fixed

This commit is contained in:
Prashant Singh 2019-01-11 15:27:11 +05:30
parent 6f4aebe423
commit ca95d1d595
3 changed files with 4 additions and 5 deletions

View File

@ -20,6 +20,7 @@ abstract class AbsGrid
protected $massActions = [];
protected $request;
protected $parse;
// protected $enableMassAction = false;
// protected $gridName = null;
abstract public function prepareMassActions();

View File

@ -3,7 +3,7 @@
<tr>
<td>
<span class="checkbox">
<input type="checkbox" v-model="dataIds" @change="select" :value="{{ $record->{$index} }}">
<input type="checkbox" v-model="dataIds" @change="select" value="{{ $record->{$index} }}">
<label class="checkbox-view" for="checkbox1"></label>
</span>
@ -11,9 +11,9 @@
@foreach($columns as $column)
@php
$index = explode('.', $column['index']);
$indexName = explode('.', $column['index']);
$index = end($index);
$indexName = end($indexName);
@endphp
@if(isset($column['wrapper']))

View File

@ -583,8 +583,6 @@
//triggered when any select box is clicked in the datagrid
select() {
console.log(this.dataIds);
this.allSelected = false;
this.massActionsToggle = true;