diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm index 2f0e25e48..98bdf7867 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Simple.pm @@ -749,9 +749,9 @@ sub buildHiddenForm { # Build hidden input HTML code $val .= - ''; @@ -1294,6 +1294,9 @@ sub safe { # Refresh the portal object inside it $safe->{p} = $self; + # Refresh environment variables + $safe->share_from( 'main', ['%ENV'] ); + return $safe; }