Merge branch 'ent-5973-fallo-en-la-pantalla-de-inicio-de-usuario-cuando-es-un-dashboard' into 'develop'

fixed error with dashboard home page

See merge request artica/pandorafms!3301
This commit is contained in:
Alejandro Fraguas 2020-06-15 12:38:02 +02:00
commit 4e6528bd3b

View File

@ -685,6 +685,11 @@ if (! isset($config['id_user'])) {
unset($query_params_redirect['sec2']); unset($query_params_redirect['sec2']);
} }
// Dashboard do not want sec2.
if ($home_page == 'Dashboard') {
unset($query_params_redirect['sec2']);
}
$redirect_url = '?logged=1'; $redirect_url = '?logged=1';
foreach ($query_params_redirect as $key => $value) { foreach ($query_params_redirect as $key => $value) {
if ($key == 'login') { if ($key == 'login') {