mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 14:06:15 +00:00
fix: Fix variables not being saved in database when executing a script (#518)
This commit is contained in:
@ -64,7 +64,7 @@ protected function getHeaderActions(): array
|
|||||||
];
|
];
|
||||||
|
|
||||||
foreach ($this->script->getVariables() as $variable) {
|
foreach ($this->script->getVariables() as $variable) {
|
||||||
$form[] = TextInput::make($variable)
|
$form[] = TextInput::make('variables.'.$variable)
|
||||||
->label($variable)
|
->label($variable)
|
||||||
->rules(fn (Get $get) => ExecuteScript::rules($get())['variables.*']);
|
->rules(fn (Get $get) => ExecuteScript::rules($get())['variables.*']);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user