From 0ae90eacaa29deceb24a622902e04337dd34c086 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Wed, 27 Jan 2021 20:45:26 -0800 Subject: [PATCH] Don't try to store null values in the DB for variables; closes #3038 --- app/Services/Servers/ServerCreationService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Servers/ServerCreationService.php b/app/Services/Servers/ServerCreationService.php index d7d533638..40e9d31c6 100644 --- a/app/Services/Servers/ServerCreationService.php +++ b/app/Services/Servers/ServerCreationService.php @@ -258,7 +258,7 @@ class ServerCreationService return [ 'server_id' => $server->id, 'variable_id' => $result->id, - 'variable_value' => $result->value, + 'variable_value' => $result->value ?? '', ]; })->toArray();