Skip to content

Commit

Permalink
add fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Feb 10, 2024
1 parent 865c43a commit c271c4d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion admin/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
$tooltiphelp = (($langs->trans($key . 'Tooltip') != $key . 'Tooltip') ? $langs->trans($key . 'Tooltip') : '');
print $form->textwithpicto($langs->trans($key), $tooltiphelp);
print '</td><td>';
$value = $conf->global->$key;
$value = $conf->global->$key ?? '';
if (isset($val['type']) && $val['type'] == 'password') {
$value = preg_replace('/./i', '*', $value);
}
Expand Down
17 changes: 17 additions & 0 deletions class/actions_easytooltip.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<tr class="liste_titre_create"><td></td><td>TEST</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>';

return 0;
}

/**
* Overloading the getTooltipContent function : replacing the parent's function with the one below
*
Expand Down
1 change: 1 addition & 0 deletions core/modules/modEasyTooltip.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit c271c4d

Please sign in to comment.