mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-19 09:51:37 +00:00
fix: Fix variables not being saved in database when executing a script (#518)
This commit is contained in:
parent
b2440586d6
commit
176ff3bbc4
@ -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.*']);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user