mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-22 16:33:48 +01:00
Custom Action : Added redirectToObjectList parameter
This commit is contained in:
parent
878d52bcd5
commit
00d7795854
1 changed files with 6 additions and 1 deletions
|
@ -50,8 +50,13 @@ if(LSsession :: startLSsession()) {
|
||||||
LSsession :: addInfo(getFData(_('The custom action %{customAction} have been successfully execute on %{objectname}.'),array('objectname' => $objectname,'customAction' => $_GET['customAction'])));
|
LSsession :: addInfo(getFData(_('The custom action %{customAction} have been successfully execute on %{objectname}.'),array('objectname' => $objectname,'customAction' => $_GET['customAction'])));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ($config['redirectToObjectList']) {
|
||||||
LSsession :: redirect('view.php?LSobject='.$_GET['LSobject'].'&refresh');
|
LSsession :: redirect('view.php?LSobject='.$_GET['LSobject'].'&refresh');
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
LSsession :: redirect('view.php?LSobject='.$_GET['LSobject'].'&dn='.$_GET['dn']);
|
||||||
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
LSerror :: addErrorCode('LSldapObject_31',array('objectname' => $objectname,'customAction' => $_GET['customAction']));
|
LSerror :: addErrorCode('LSldapObject_31',array('objectname' => $objectname,'customAction' => $_GET['customAction']));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue