mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-04 15:51:22 +00:00
api: backup: normalize 'dow' format when converting
the old web ui sends the days as seperate parameters, which will be concatenated by a null-byte in the api, causing it to land it this way in the jobs.cfg to fix this, split+join the list to get a well-formed dow list Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
1c87d3447c
commit
307b2608a5
@ -52,6 +52,7 @@ my $convert_to_schedule = sub {
|
||||
|
||||
my $starttime = $job->{starttime};
|
||||
my $dow = $job->{dow};
|
||||
$dow = join(',', PVE::Tools::split_list($dow)) if defined($dow);
|
||||
|
||||
if (!$dow || $dow eq ALL_DAYS) {
|
||||
return "$starttime";
|
||||
|
Loading…
Reference in New Issue
Block a user