From 872a15af94268936cffc8638464fa23ab9817ac5 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 15 Sep 2021 17:59:37 +0200 Subject: [PATCH] Fix handling noRedirect parameter of LSobject's customAction --- src/includes/routes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/includes/routes.php b/src/includes/routes.php index 7102c468..be320591 100644 --- a/src/includes/routes.php +++ b/src/includes/routes.php @@ -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)); } }