qual : phsptan
htdocs/expensereport/payment/payment.php 113 Property PaymentExpenseReport::$fk_typepayment (int) does not accept array|string. htdocs/expensereport/payment/payment.php 116 Property PaymentExpenseReport::$fk_bank (int) does not accept array|string.
This commit is contained in:
parent
9927b5a8a8
commit
c0f2d57dd9
1 changed files with 3 additions and 3 deletions
|
|
@ -32,11 +32,11 @@ require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
|
|||
// Load translation files required by the page
|
||||
$langs->loadLangs(array('bills', 'banks', 'trips'));
|
||||
|
||||
$id = GETPOST("id", 'int');
|
||||
$id = GETPOSTINT('id');
|
||||
$ref = GETPOST('ref', 'alpha');
|
||||
$action = GETPOST('action', 'aZ09');
|
||||
$amounts = array();
|
||||
$accountid = GETPOST('accountid', 'int');
|
||||
$accountid = GETPOSTINT('accountid');
|
||||
$cancel = GETPOST('cancel');
|
||||
|
||||
// Security check
|
||||
|
|
@ -110,7 +110,7 @@ if ($action == 'add_payment') {
|
|||
$payment->datep = $datepaid;
|
||||
$payment->amounts = $amounts; // Tableau de montant
|
||||
$payment->total = $total;
|
||||
$payment->fk_typepayment = GETPOST("fk_typepayment", 'int');
|
||||
$payment->fk_typepayment = GETPOSTINT("fk_typepayment");
|
||||
$payment->num_payment = GETPOST("num_payment", 'alphanothtml');
|
||||
$payment->note_public = GETPOST("note_public", 'restricthtml');
|
||||
$payment->fk_bank = $accountid;
|
||||
|
|
|
|||
Loading…
Reference in a new issue