diff --git a/admin/admin_settings.php b/admin/admin_settings.php
index 511ab71b..cafbd5da 100644
--- a/admin/admin_settings.php
+++ b/admin/admin_settings.php
@@ -3791,6 +3791,19 @@ $modsForHesk_settings = mfh_getSettings();
+
diff --git a/admin/admin_settings_save.php b/admin/admin_settings_save.php
index 0c3df742..e62568b5 100644
--- a/admin/admin_settings_save.php
+++ b/admin/admin_settings_save.php
@@ -495,6 +495,7 @@ $set['dropdownItemTextHoverColor'] = hesk_input(hesk_POST('dropdownItemTextHover
$set['questionMarkColor'] = hesk_input(hesk_POST('questionMarkColor'));
$set['dropdownItemTextHoverBackgroundColor'] = hesk_input(hesk_POST('dropdownItemTextHoverBackgroundColor'));
$set['admin_color_scheme'] = hesk_input(hesk_POST('admin-color-scheme'));
+$set['login_background'] = hesk_input(hesk_POST('login-background'));
mfh_updateSetting('rtl', $set['rtl']);
mfh_updateSetting('show_icons', $set['show-icons']);
mfh_updateSetting('custom_field_setting', $set['custom-field-setting']);
@@ -532,6 +533,7 @@ mfh_updateSetting('enable_calendar', $set['enable_calendar'], false);
mfh_updateSetting('first_day_of_week', $set['first_day_of_week'], false);
mfh_updateSetting('default_calendar_view', $set['default_view'], true);
mfh_updateSetting('admin_color_scheme', $set['admin_color_scheme'], true);
+mfh_updateSetting('login_background', $set['login_background'], true);
// Prepare settings file and save it
$settings_file_content = '
body {
- background: #d2d6de;
+ background: ;
}
diff --git a/install/mods-for-hesk/sql/installSql.php b/install/mods-for-hesk/sql/installSql.php
index b2faa81a..b8772650 100644
--- a/install/mods-for-hesk/sql/installSql.php
+++ b/install/mods-for-hesk/sql/installSql.php
@@ -1009,6 +1009,7 @@ function execute310Scripts() {
executeQuery("ALTER TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "categories` ADD COLUMN `foreground_color` VARCHAR(7) NOT NULL DEFAULT 'AUTO'");
executeQuery("ALTER TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "categories` ADD COLUMN `display_border_outline` ENUM('0','1') NOT NULL DEFAULT '0'");
executeQuery("ALTER TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "categories` CHANGE `color` `background_color` VARCHAR(7) NOT NULL DEFAULT '#FFFFFF'");
+ executeQuery("INSERT INTO `" . hesk_dbEscape($hesk_settings['db_pfix']) . "settings` (`Key`, `Value`) VALUES ('login_background', '#d2d6de')");
updateVersion('3.1.0');
}
\ No newline at end of file