mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 01:49:08 +01:00
customAction : add noRedirect parameter
This commit is contained in:
parent
bf8044f5f8
commit
042fb21901
2 changed files with 12 additions and 2 deletions
|
@ -17,6 +17,7 @@
|
|||
'disableOnSuccessMsg' => '[booléen]',
|
||||
'noConfirmation' => '[booléen]',
|
||||
'redirectToObjectList' => '[booléen]',
|
||||
'noRedirect' => '[booléen]',
|
||||
'rights' => array(
|
||||
'LSprofile1',
|
||||
'LSprofile2',
|
||||
|
@ -109,6 +110,15 @@
|
|||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>noRedirect</term>
|
||||
<listitem>
|
||||
<simpara>Booléen permetant de désactiver la redirection de l'utilisateur après
|
||||
l'execution de l'action. Cela permet à la fonction de définir son propre fichier
|
||||
de template de retour et donc d'afficher une page personnalisable.</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>rights</term>
|
||||
<listitem>
|
||||
|
|
|
@ -56,7 +56,7 @@ if(LSsession :: startLSsession()) {
|
|||
if ($config['redirectToObjectList']) {
|
||||
LSsession :: redirect('view.php?LSobject='.$LSobject.'&refresh');
|
||||
}
|
||||
else {
|
||||
else if (!isset($config['noRedirect']) || !$config['noRedirect']) {
|
||||
LSsession :: redirect('view.php?LSobject='.$LSobject.'&dn='.urlencode($dn));
|
||||
}
|
||||
}
|
||||
|
@ -81,8 +81,8 @@ if(LSsession :: startLSsession()) {
|
|||
LStemplate :: assign('question',$question);
|
||||
LStemplate :: assign('validation_url','custom_action.php?LSobject='.urlencode($LSobject).'&dn='.urlencode($dn).'&customAction='.urlencode($customAction).'&valid');
|
||||
LStemplate :: assign('validation_label',_('Validate'));
|
||||
LSsession :: setTemplate('question.tpl');
|
||||
}
|
||||
LSsession :: setTemplate('question.tpl');
|
||||
}
|
||||
else {
|
||||
LSerror :: addErrorCode('LSsession_13');
|
||||
|
|
Loading…
Reference in a new issue