Skip to content

Commit e2fb3c1

Browse files
authored
Update src/app/Http/Controllers/CrudController.php
1 parent 3f1cddd commit e2fb3c1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/app/Http/Controllers/CrudController.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ protected function setupDefaults()
9696
protected function setupConfigurationForCurrentOperation()
9797
{
9898
$operationName = $this->crud->getCurrentOperation();
99-
$setupClassName = 'setup'.Str::studly($operationName ?? '').'Operation';
99+
if (!$operationName) {
100+
return;
101+
}
102+
103+
$setupClassName = 'setup'.Str::studly($operationName).'Operation';
100104

101105
/*
102106
* FIRST, run all Operation Closures for this operation.

0 commit comments

Comments
 (0)