From 00d77958548ee8e7771c8e9cd81ed9012c3da536 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 15 Dec 2011 11:22:51 +0100 Subject: [PATCH] Custom Action : Added redirectToObjectList parameter --- public_html/custom_action.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public_html/custom_action.php b/public_html/custom_action.php index 20f82346..ae553950 100644 --- a/public_html/custom_action.php +++ b/public_html/custom_action.php @@ -50,7 +50,12 @@ if(LSsession :: startLSsession()) { LSsession :: addInfo(getFData(_('The custom action %{customAction} have been successfully execute on %{objectname}.'),array('objectname' => $objectname,'customAction' => $_GET['customAction']))); } } - LSsession :: redirect('view.php?LSobject='.$_GET['LSobject'].'&refresh'); + if ($config['redirectToObjectList']) { + LSsession :: redirect('view.php?LSobject='.$_GET['LSobject'].'&refresh'); + } + else { + LSsession :: redirect('view.php?LSobject='.$_GET['LSobject'].'&dn='.$_GET['dn']); + } } else { LSerror :: addErrorCode('LSldapObject_31',array('objectname' => $objectname,'customAction' => $_GET['customAction']));