Skip to content

Commit c347a67

Browse files
committed
Save set image to database
1 parent a2fc511 commit c347a67

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
1616
* File manager would do multiple up-down-up-down loading actions if you escaped renaming a file. Fixed the binding issue. [#122](https://github.com/Pterodactyl/Panel/issues/122)
1717
* File manager actions would not trigger properly if text in a row was used to right-click from.
1818
* File manager rename field would not disappear when pressing the escape key in chrome. [#121](https://github.com/Pterodactyl/Panel/issues/121)
19+
* Fixes bug where server image assigned was not being saved to the database.
1920

2021
## v0.5.0-pre.1 (Bodacious Boreopterus)
2122

app/Repositories/ServerRepository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ public function create(array $data)
242242
'option' => $data['option'],
243243
'startup' => $data['startup'],
244244
'daemonSecret' => $uuid->generate('servers', 'daemonSecret'),
245+
'image' => (isset($data['custom_image_name'])) ? $data['custom_image_name'] : $option->docker_image,
245246
'username' => $this->generateSFTPUsername($data['name']),
246247
'sftp_password' => Crypt::encrypt('not set')
247248
]);

0 commit comments

Comments
 (0)