1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

Fixed shelf covers being stored as 'cover_book'

Are now stored as 'cover_bookshelf' as expected.
Added a migrate to alter existing shelf cover image types.
This commit is contained in:
Dan Brown
2022-09-02 12:54:54 +01:00
parent 27ac122502
commit f28ed0ef0b
4 changed files with 46 additions and 2 deletions

View File

@@ -125,6 +125,7 @@ class BookShelfTest extends TestCase
'image_id' => $lastImage->id,
]);
$this->assertEquals($lastImage->id, $shelf->cover->id);
$this->assertEquals('cover_bookshelf', $lastImage->type);
}
public function test_shelf_view()