Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add fixes #6

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading