mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-13 00:41:59 +03:00
Allow book, shelf, settings & profile form input validation to skip image
This commit is contained in:
@ -85,7 +85,7 @@ class BookshelfController extends Controller
|
||||
$this->validate($request, [
|
||||
'name' => 'required|string|max:255',
|
||||
'description' => 'string|max:1000',
|
||||
'image' => $this->getImageValidationRules(),
|
||||
'image' => 'nullable|' . $this->getImageValidationRules(),
|
||||
]);
|
||||
|
||||
$bookIds = explode(',', $request->get('books', ''));
|
||||
@ -146,7 +146,7 @@ class BookshelfController extends Controller
|
||||
$this->validate($request, [
|
||||
'name' => 'required|string|max:255',
|
||||
'description' => 'string|max:1000',
|
||||
'image' => $this->getImageValidationRules(),
|
||||
'image' => 'nullable|' . $this->getImageValidationRules(),
|
||||
]);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user