Fix handling noRedirect parameter of LSobject's customAction

This commit is contained in:
Benjamin Renard 2021-09-15 17:59:37 +02:00
parent 59ecc0d7fa
commit 872a15af94

View file

@ -1398,7 +1398,7 @@ function handle_LSobject_customAction($request) {
if (LSconfig :: get('redirectToObjectList', false, 'bool', $config)) {
LSurl :: redirect("object/$LSobject?refresh");
}
else if (LSconfig :: get('noRedirect', false, 'bool', $config)) {
else if (!LSconfig :: get('noRedirect', false, 'bool', $config)) {
LSurl :: redirect("object/$LSobject/".urlencode($dn));
}
}