Fix : remove nonsense code
This commit is contained in:
parent
31ef942c96
commit
7bf0287c65
@ -74,17 +74,6 @@ $hookmanager->initHooks(array('taxvatcard', 'globalcard'));
|
|||||||
// Fetch optionals attributes and labels
|
// Fetch optionals attributes and labels
|
||||||
$extrafields->fetch_name_optionals_label($object->table_element);
|
$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)) {
|
if (empty($action) && empty($id) && empty($ref)) {
|
||||||
$action = 'view';
|
$action = 'view';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user