Fix phpcs

This commit is contained in:
Laurent Destailleur 2022-03-01 01:57:38 +01:00
parent a08bbd6acd
commit 54bef2e34f
2 changed files with 3 additions and 3 deletions

View File

@ -284,9 +284,8 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
array('type' => 'checkbox', 'name' => 'disposal_subject_to_vat', 'label' => $langs->trans("AssetDisposalSubjectToVat"), 'value' => $disposal_subject_to_vat),
);
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?id=' . $object->id, $langs->trans('AssetDisposal'), $langs->trans('AssetConfirmDisposalAsk', $object->ref . ' - ' . $object->label), 'confirm_disposal', $formquestion, 'yes', 1);
}
// Re-open
elseif ($action == 'reopen') {
} elseif ($action == 'reopen') {
// Re-open
// Create an array for form
$formquestion = array();
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ReOpen'), $langs->trans('AssetConfirmReOpenAsk', $object->ref), 'confirm_reopen', $formquestion, 'yes', 1);

View File

@ -439,6 +439,7 @@ class FormAccounting extends Form
* @param int|string $showempty Add an empty field
* @param string $morecss More css
* @param string $usecache Key to use to store result into a cache. Next call with same key will reuse the cache.
* @param string $labelhtmlname HTML name of label for autofill of account from name.
* @return string String with HTML select
*/
public function select_auxaccount($selectid, $htmlname = 'account_num_aux', $showempty = 0, $morecss = 'maxwidth250', $usecache = '', $labelhtmlname = '')