Fix bad GETPOST on 'action'
This commit is contained in:
parent
e9f9b5bdf4
commit
ab0a730d4a
@ -37,7 +37,7 @@ $id = GETPOST('id', 'int');
|
|||||||
if ($user->societe_id > 0) {
|
if ($user->societe_id > 0) {
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
$action = GETPOST('action');
|
$action = GETPOST('action','aZ09');
|
||||||
$mode = GETPOST('mode');
|
$mode = GETPOST('mode');
|
||||||
$piece_num = GETPOST("piece_num");
|
$piece_num = GETPOST("piece_num");
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,7 @@ $langs->load("accountancy");
|
|||||||
$langs->load("compta");
|
$langs->load("compta");
|
||||||
|
|
||||||
$mesg = '';
|
$mesg = '';
|
||||||
$action = GETPOST('action');
|
$action = GETPOST('action','aZ09');
|
||||||
$cat_id = GETPOST('account_category');
|
$cat_id = GETPOST('account_category');
|
||||||
$selectcpt = GETPOST('cpt_bk');
|
$selectcpt = GETPOST('cpt_bk');
|
||||||
$id = GETPOST('id', 'int');
|
$id = GETPOST('id', 'int');
|
||||||
|
|||||||
@ -529,7 +529,7 @@ class FormMail extends Form
|
|||||||
$tmparray[$key]=dol_htmlentities($tmparray[$key], null, 'UTF-8', true);
|
$tmparray[$key]=dol_htmlentities($tmparray[$key], null, 'UTF-8', true);
|
||||||
}
|
}
|
||||||
$withtoselected=GETPOST("receiver"); // Array of selected value
|
$withtoselected=GETPOST("receiver"); // Array of selected value
|
||||||
if (empty($withtoselected) && count($tmparray) == 1 && GETPOST('action') == 'presend')
|
if (empty($withtoselected) && count($tmparray) == 1 && GETPOST('action','aZ09') == 'presend')
|
||||||
{
|
{
|
||||||
$withtoselected = array_keys($tmparray);
|
$withtoselected = array_keys($tmparray);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,7 +31,7 @@ require_once DOL_DOCUMENT_ROOT.'/loan/class/loanschedule.class.php';
|
|||||||
global $user;
|
global $user;
|
||||||
|
|
||||||
$loanid = GETPOST('loanid', 'int');
|
$loanid = GETPOST('loanid', 'int');
|
||||||
$action = GETPOST('action');
|
$action = GETPOST('action','aZ09');
|
||||||
|
|
||||||
$object = new Loan($db);
|
$object = new Loan($db);
|
||||||
$object->fetch($loanid);
|
$object->fetch($loanid);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user