mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 08:19:05 +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();
|
||||
$GLOBALS['Smarty'] -> assign('pagetitle',$title.' : '.$objectname);
|
||||
if ($config['function']($object)) {
|
||||
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'])));
|
||||
if ($config['disableOnSuccessMsg']!=true) {
|
||||
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'])));
|
||||
}
|
||||
}
|
||||
LSsession :: redirect('view.php?LSobject='.$_GET['LSobject'].'&refresh');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue