diff --git a/main/install/install.lib.php b/main/install/install.lib.php index cd680d20c1..a4ac68ec5e 100755 --- a/main/install/install.lib.php +++ b/main/install/install.lib.php @@ -2567,6 +2567,9 @@ function installProfileSettings( return false; } $settings = $params->params; + if (!empty($params->parent)) { + $res = installProfileSettings($params->parent); + } foreach ($settings as $id => $param) { $sql = "UPDATE settings_current SET selected_value = '".$param->selected_value."' @@ -2576,4 +2579,5 @@ function installProfileSettings( } Database::query($sql); } + return true; } \ No newline at end of file diff --git a/main/install/profiles/hr.json b/main/install/profiles/hr.json index 090579c72a..61c5150b16 100644 --- a/main/install/profiles/hr.json +++ b/main/install/profiles/hr.json @@ -1,11 +1,12 @@ { "id": 1, "name": "HR", + "parent": "prod", "params": [ { - "variable": "show_link_bug_notification", + "variable": "allow_skills_tool", "subkey": "", - "selected_value": "false" + "selected_value": "true" } ] } \ No newline at end of file diff --git a/main/install/profiles/prod.json b/main/install/profiles/prod.json new file mode 100644 index 0000000000..96aea0e34e --- /dev/null +++ b/main/install/profiles/prod.json @@ -0,0 +1,11 @@ +{ + "id": 1, + "name": "Production", + "params": [ + { + "variable": "show_link_bug_notification", + "subkey": "", + "selected_value": "false" + } + ] +} \ No newline at end of file