#11670 Fix home page
This commit is contained in:
parent
8e42ee6c82
commit
2e110fb162
|
@ -353,8 +353,7 @@ if ($create_user === true) {
|
|||
$values['data_section'] = get_parameter('data_section');
|
||||
}
|
||||
|
||||
$values['section'] = $homeScreenValues[$values['section']];
|
||||
|
||||
// $values['section'] = $homeScreenValues[$values['section']];
|
||||
if (enterprise_installed() === true) {
|
||||
$values['force_change_pass'] = 1;
|
||||
$values['last_pass_change'] = date('Y/m/d H:i:s', get_system_time());
|
||||
|
@ -645,8 +644,7 @@ if ($update_user) {
|
|||
$values['data_section'] = get_parameter('data_section');
|
||||
}
|
||||
|
||||
$values['section'] = $homeScreenValues[$values['section']];
|
||||
|
||||
// $values['section'] = $homeScreenValues[$values['section']];
|
||||
if (enterprise_installed() === true && is_metaconsole() === true) {
|
||||
if (users_is_admin() === true) {
|
||||
$values['metaconsole_access'] = get_parameter('metaconsole_access');
|
||||
|
|
|
@ -633,7 +633,7 @@ $homeScreenTable->rowclass['fields_homescreen'] = 'field_half_width flex';
|
|||
$homeScreenTable->data['fields_homescreen'][0] = html_print_select(
|
||||
$homeScreenValues,
|
||||
'section',
|
||||
array_search($user_info['section'], $homeScreenValues),
|
||||
$user_info['section'],
|
||||
'show_data_section();',
|
||||
'',
|
||||
-1,
|
||||
|
|
|
@ -814,10 +814,6 @@ function update_user(string $id_user, array $values)
|
|||
HOME_SCREEN_DASHBOARD => __('Dashboard'),
|
||||
];
|
||||
|
||||
if (array_key_exists($values['section'], $homeScreenValues) === true) {
|
||||
$values['section'] = $homeScreenValues[$values['section']];
|
||||
}
|
||||
|
||||
if (is_metaconsole() === true) {
|
||||
$values['metaconsole_section'] = $values['section'];
|
||||
$values['metaconsole_data_section'] = $values['data_section'];
|
||||
|
|
Loading…
Reference in New Issue