diff --git a/admin/setup.php b/admin/setup.php index e38775f..cb8a5fa 100644 --- a/admin/setup.php +++ b/admin/setup.php @@ -187,7 +187,7 @@ $tooltiphelp = (($langs->trans($key . 'Tooltip') != $key . 'Tooltip') ? $langs->trans($key . 'Tooltip') : ''); print $form->textwithpicto($langs->trans($key), $tooltiphelp); print ''; - $value = $conf->global->$key; + $value = $conf->global->$key ?? ''; if (isset($val['type']) && $val['type'] == 'password') { $value = preg_replace('/./i', '*', $value); } diff --git a/class/actions_easytooltip.class.php b/class/actions_easytooltip.class.php index 1de8d42..52a1697 100644 --- a/class/actions_easytooltip.class.php +++ b/class/actions_easytooltip.class.php @@ -71,6 +71,23 @@ public function __construct($db) } + + /** + * Overloading the formAddObjectLine function : replacing the parent's function with the one below + * + * @param array $parameters Hook metadatas (context, etc...) + * @param CommonObject $object The object to process (an invoice if you are in invoice module, a propale in propale's module, etc...) + * @param string $action Current action (if set). Generally create or edit or null + * @param HookManager $hookmanager Hook manager propagated to allow calling another hook + * @return integer < 0 on error, 0 on success, 1 to replace standard code + */ + public function formAddObjectLine($parameters, &$object, &$action, $hookmanager) + { + print 'TEST'; + + return 0; + } + /** * Overloading the getTooltipContent function : replacing the parent's function with the one below * diff --git a/core/modules/modEasyTooltip.class.php b/core/modules/modEasyTooltip.class.php index 62e2147..99b28b1 100644 --- a/core/modules/modEasyTooltip.class.php +++ b/core/modules/modEasyTooltip.class.php @@ -119,6 +119,7 @@ public function __construct($db) // Set here all hooks context managed by module. To find available hook context, make a "grep -r '>initHooks(' *" on source code. You can also set hook context to 'all' 'hooks' => [ 'data' => [ + 'globalcard', 'main', 'commandedao', 'contratdao',