Skip to content

Commit c39ccb8

Browse files
authored
Merge pull request #5278 from Laravel-Backpack/prevent-crud-installation-without-theme
Prevent crud installation without theme
2 parents 2e321ca + bb52c07 commit c39ccb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/Console/Commands/Install.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,14 +311,14 @@ private function installTheme()
311311
}, 0);
312312

313313
$total = 0;
314-
$input = (int) $this->listChoice('Which Backpack theme would you like to install? <fg=gray>(enter option number: 1, 2 or 3)</>', $this->themes()->toArray());
314+
$input = (int) $this->listChoice('Which Backpack theme would you like to install? <fg=gray>(enter option number: 1, 2 or 3)</>', $this->themes()->toArray(), 1);
315315

316316
if ($input < 1 || $input > $this->themes()->count()) {
317317
$this->deleteLines(3);
318-
$this->note('Skipping installing a theme.');
318+
$this->note('Unknown theme. Using default theme value.');
319319
$this->newLine();
320320

321-
return;
321+
$input = 1;
322322
}
323323

324324
// Clear list

0 commit comments

Comments
 (0)