Skip to content

Commit 9c6c181

Browse files
author
Till Brehm
committed
Fixes #5706 Database backup settings not in sync with parent website
1 parent a2f1f43 commit 9c6c181

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

interface/lib/classes/sites_database_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public function processDatabaseUpdate($form_page) {
4949
$backup_format_db = $web['backup_format_db'];
5050
$backup_copies = $app->functions->intval($web['backup_copies']);
5151

52-
$sql = "UPDATE web_database SET sys_groupid = ?, backup_interval = ?, backup_copies = ?, backup_format_web = ?, backup_format_db = ? WHERE database_id = ?";
53-
$app->db->query($sql, $sys_groupid, $backup_interval, $backup_copies, $backup_format_web, $backup_format_db, $form_page->id);
52+
$sql = "UPDATE web_database SET sys_groupid = ?, backup_interval = ?, backup_copies = ? WHERE database_id = ?";
53+
$app->db->query($sql, $sys_groupid, $backup_interval, $backup_copies, $form_page->id);
5454
}
5555
}
5656

interface/lib/plugins/sites_web_vhost_domain_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ function sites_web_vhost_domain_edit($event_name, $page_form) {
265265
$backup_format_db = $page_form->dataRecord['backup_format_db'];
266266
$records = $app->db->queryAllRecords("SELECT database_id FROM web_database WHERE parent_domain_id = ".$page_form->id);
267267
foreach($records as $rec) {
268-
$app->db->datalogUpdate('web_database', array("backup_interval" => $backup_interval, "backup_copies" => $backup_copies, "backup_format_web" => $backup_format_web, "backup_format_db" => $backup_format_db), 'database_id', $rec['database_id']);
268+
$app->db->datalogUpdate('web_database', array("backup_interval" => $backup_interval, "backup_copies" => $backup_copies), 'database_id', $rec['database_id']);
269269
}
270270
unset($records);
271271
unset($rec);

0 commit comments

Comments
 (0)