1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Fixed failing tests after conversion changes

This commit is contained in:
Dan Brown
2022-06-19 18:44:34 +01:00
parent ba25dda031
commit 388343aeb0
3 changed files with 6 additions and 4 deletions

View File

@ -87,6 +87,7 @@ class BookshelfController extends Controller
'name' => ['required', 'string', 'max:255'],
'description' => ['string', 'max:1000'],
'image' => array_merge(['nullable'], $this->getImageValidationRules()),
'tags' => ['array'],
]);
$bookIds = explode(',', $request->get('books', ''));
@ -163,6 +164,7 @@ class BookshelfController extends Controller
'name' => ['required', 'string', 'max:255'],
'description' => ['string', 'max:1000'],
'image' => array_merge(['nullable'], $this->getImageValidationRules()),
'tags' => ['array'],
]);
if ($request->has('image_reset')) {