Fixed extra

This commit is contained in:
Dmitry Khomutov 2017-02-19 01:21:46 +07:00
commit 5d03a0ab35
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
4 changed files with 3 additions and 5 deletions

View file

@ -522,8 +522,6 @@ class Build extends Model
*/
public function setExtra($value)
{
$value = json_encode($value);
$this->validateString('Extra', $value);
if ($this->data['extra'] === $value) {

View file

@ -87,7 +87,7 @@ class BuildService
}
if (!is_null($extra)) {
$build->setExtra($extra);
$build->setExtra(json_encode($extra));
}
$build = $this->buildStore->save($build);