Merge pull request #24699 from FHenry/17_fix_var
fix: add field in sql the is use in line 1463 and remove undeclare variables
This commit is contained in:
commit
97b0d0dc49
@ -1419,6 +1419,7 @@ if ($object->id > 0) {
|
||||
$sql .= ', f.total_tva';
|
||||
$sql .= ', f.total_ttc';
|
||||
$sql .= ', f.entity';
|
||||
$sql .= ', f.date_lim_reglement as dl';
|
||||
$sql .= ', f.datef as df, f.datec as dc, f.paye as paye, f.fk_statut as status';
|
||||
$sql .= ', s.nom, s.rowid as socid';
|
||||
$sql .= ', SUM(pf.amount) as am';
|
||||
|
||||
@ -2251,9 +2251,9 @@ if ($action == 'create') {
|
||||
}
|
||||
|
||||
if (empty($conf->global->PROPAL_SKIP_ACCEPT_REFUSE)) {
|
||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('SetAcceptedRefused'), $text, 'confirm_closeas', $formquestion, '', 1, 250);
|
||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('SetAcceptedRefused'), '', 'confirm_closeas', $formquestion, '', 1, 250);
|
||||
} else {
|
||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?statut=3&id=' . $object->id, $langs->trans('Close'), $text, 'confirm_closeas', $formquestion, '', 1, 250);
|
||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?statut=3&id=' . $object->id, $langs->trans('Close'), '', 'confirm_closeas', $formquestion, '', 1, 250);
|
||||
}
|
||||
} elseif ($action == 'delete') {
|
||||
// Confirm delete
|
||||
|
||||
Loading…
Reference in New Issue
Block a user