Merge pull request #22664 from atm-maxime/fix_vat_form_warning

Fix : remove nonsense code and fix #21889
This commit is contained in:
Laurent Destailleur 2022-10-24 16:43:50 +02:00 committed by GitHub
commit 4ec88056fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,17 +74,6 @@ $hookmanager->initHooks(array('taxvatcard', 'globalcard'));
// Fetch optionals attributes and labels
$extrafields->fetch_name_optionals_label($object->table_element);
$search_array_options = $extrafields->getOptionalsFromPost($object->table_element, '', 'search_');
// Initialize array of search criterias
$search_all = GETPOST("search_all", 'alpha');
$search = array();
foreach ($object->fields as $key => $val) {
if (GETPOST('search_'.$key, 'alpha')) {
$search[$key] = GETPOST('search_'.$key, 'alpha');
}
}
if (empty($action) && empty($id) && empty($ref)) {
$action = 'view';
}