mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
CustomActions : Added disableOnSuccessMsg parameter
This commit is contained in:
parent
62bb6c55a1
commit
5d911be334
1 changed files with 7 additions and 5 deletions
|
@ -42,11 +42,13 @@ if(LSsession :: startLSsession()) {
|
||||||
$objectname=$object -> getDisplayName();
|
$objectname=$object -> getDisplayName();
|
||||||
$GLOBALS['Smarty'] -> assign('pagetitle',$title.' : '.$objectname);
|
$GLOBALS['Smarty'] -> assign('pagetitle',$title.' : '.$objectname);
|
||||||
if ($config['function']($object)) {
|
if ($config['function']($object)) {
|
||||||
if ($config['onSuccessMsgFormat']) {
|
if ($config['disableOnSuccessMsg']!=true) {
|
||||||
LSsession :: addInfo(getFData($config['onSuccessMsgFormat'],$objectname));
|
if ($config['onSuccessMsgFormat']) {
|
||||||
}
|
LSsession :: addInfo(getFData($config['onSuccessMsgFormat'],$objectname));
|
||||||
else {
|
}
|
||||||
LSsession :: addInfo(getFData(_('The custom action %{customAction} have been successfully execute on %{objectname}.'),array('objectname' => $objectname,'customAction' => $_GET['customAction'])));
|
else {
|
||||||
|
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');
|
LSsession :: redirect('view.php?LSobject='.$_GET['LSobject'].'&refresh');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue