FIX: remove useless hookmanager init

This commit is contained in:
Marc de Lima Lucio 2022-07-19 12:31:13 +02:00
parent 53812c9f13
commit a691c8ebe9

View File

@ -3179,13 +3179,6 @@ class Form
$out .= '<option value="-1">'.($placeholder ? $placeholder : '&nbsp;').'</option>';
}
if (! is_object($hookmanager)) {
require_once DOL_DOCUMENT_ROOT . '/core/class/hookmanager.class.php';
$hookmanager = new HookManager($this->db);
}
$hookmanager->initHooks(array('form'));
$i = 0;
while ($i < $num) {
$objp = $this->db->fetch_object($result);