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,12 +42,14 @@ 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['disableOnSuccessMsg']!=true) {
|
||||||
if ($config['onSuccessMsgFormat']) {
|
if ($config['onSuccessMsgFormat']) {
|
||||||
LSsession :: addInfo(getFData($config['onSuccessMsgFormat'],$objectname));
|
LSsession :: addInfo(getFData($config['onSuccessMsgFormat'],$objectname));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
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'])));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
LSsession :: redirect('view.php?LSobject='.$_GET['LSobject'].'&refresh');
|
LSsession :: redirect('view.php?LSobject='.$_GET['LSobject'].'&refresh');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue