mirror of
				https://github.com/BookStackApp/BookStack.git
				synced 2025-11-03 02:13:16 +03:00 
			
		
		
		
	Merge branch 'philjak-feature_bugfix_save_book_cover'
This commit is contained in:
		@@ -82,6 +82,7 @@ class BaseRepo
 | 
				
			|||||||
            $this->imageRepo->destroyImage($entity->cover);
 | 
					            $this->imageRepo->destroyImage($entity->cover);
 | 
				
			||||||
            $image = $this->imageRepo->saveNew($coverImage, 'cover_book', $entity->id, 512, 512, true);
 | 
					            $image = $this->imageRepo->saveNew($coverImage, 'cover_book', $entity->id, 512, 512, true);
 | 
				
			||||||
            $entity->cover()->associate($image);
 | 
					            $entity->cover()->associate($image);
 | 
				
			||||||
 | 
					            $entity->save();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ($removeImage) {
 | 
					        if ($removeImage) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user