Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit 0e66c48

Browse files
jovixvfletch3555
authored andcommitted
Fixed Bug (#3596)
Fixed bug, when need create bread and DataType table does not has row with this "table name" trying to get property 'model_name'
1 parent 0ed3fff commit 0e66c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Controllers/VoyagerBreadController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function create(Request $request, $table)
5454
$dataType = Voyager::model('DataType')->whereName($table)->first();
5555

5656
$data = $this->prepopulateBreadInfo($table);
57-
$data['fieldOptions'] = SchemaManager::describeTable((strlen($dataType->model_name) != 0)
57+
$data['fieldOptions'] = SchemaManager::describeTable((isset($dataType) && strlen($dataType->model_name) != 0)
5858
? app($dataType->model_name)->getTable()
5959
: $table
6060
);

0 commit comments

Comments
 (0)