From 176ff3bbc4a2cff11274e6d1d0dd1dce540d7a0f Mon Sep 17 00:00:00 2001 From: Dimitar Yanakiev Date: Sat, 1 Mar 2025 00:26:18 +0200 Subject: [PATCH] fix: Fix variables not being saved in database when executing a script (#518) --- app/Web/Pages/Scripts/Executions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Web/Pages/Scripts/Executions.php b/app/Web/Pages/Scripts/Executions.php index 8705c45..4b8db16 100644 --- a/app/Web/Pages/Scripts/Executions.php +++ b/app/Web/Pages/Scripts/Executions.php @@ -64,7 +64,7 @@ protected function getHeaderActions(): array ]; foreach ($this->script->getVariables() as $variable) { - $form[] = TextInput::make($variable) + $form[] = TextInput::make('variables.'.$variable) ->label($variable) ->rules(fn (Get $get) => ExecuteScript::rules($get())['variables.*']); }