Merge pull request #13950 from snipe/fixes/array_key_in_import

Check for the array key in $activeFile->first_row
This commit is contained in:
snipe 2023-11-24 10:10:08 +00:00 committed by GitHub
commit eca13d0593
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -235,7 +235,7 @@
])
}}
</div>
@if ($activeFile->first_row)
@if (($activeFile->first_row) && (array_key_exists($index, $activeFile->first_row)))
<div class="col-md-5">
<p class="form-control-static">{{ str_limit($activeFile->first_row[$index], 50, '...') }}</p>
</div>