mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
Fix handling disableOnSuccessMsg parameter on LSobject customActions
This commit is contained in:
parent
28d08aaae8
commit
d89d75f72b
1 changed files with 11 additions and 9 deletions
|
@ -1384,6 +1384,7 @@ function handle_LSobject_customAction($request) {
|
||||||
if (isset($_GET['valid']) || LSconfig :: get('noConfirmation', false, 'bool', $config)) {
|
if (isset($_GET['valid']) || LSconfig :: get('noConfirmation', false, 'bool', $config)) {
|
||||||
LStemplate :: assign('pagetitle', $title.' : '.$objectname);
|
LStemplate :: assign('pagetitle', $title.' : '.$objectname);
|
||||||
if (call_user_func_array($function, array(&$object))) {
|
if (call_user_func_array($function, array(&$object))) {
|
||||||
|
if (!LSconfig :: get('disableOnSuccessMsg', false, 'bool', $config)) {
|
||||||
$msg_format = LSconfig :: get('onSuccessMsgFormat', null, 'string', $config);
|
$msg_format = LSconfig :: get('onSuccessMsgFormat', null, 'string', $config);
|
||||||
if ($msg_format) {
|
if ($msg_format) {
|
||||||
$msg = getFData(__($msg_format), $objectname);
|
$msg = getFData(__($msg_format), $objectname);
|
||||||
|
@ -1394,6 +1395,7 @@ function handle_LSobject_customAction($request) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
LSsession :: addInfo($msg);
|
LSsession :: addInfo($msg);
|
||||||
|
}
|
||||||
|
|
||||||
if (LSconfig :: get('redirectToObjectList', false, 'bool', $config)) {
|
if (LSconfig :: get('redirectToObjectList', false, 'bool', $config)) {
|
||||||
LSurl :: redirect("object/$LSobject?refresh");
|
LSurl :: redirect("object/$LSobject?refresh");
|
||||||
|
|
Loading…
Reference in a new issue