Fix tooltip on project not visible sometimes

This commit is contained in:
Laurent Destailleur 2020-06-18 02:50:46 +02:00
parent a5ce3ada0a
commit 1ed649ff28
3 changed files with 4 additions and 13 deletions

View File

@ -7,7 +7,7 @@ ProjectsArea=Projects Area
ProjectStatus=Project status
SharedProject=Everybody
PrivateProject=Project contacts
ProjectsImContactFor=Projects for I am explicitly a contact
ProjectsImContactFor=Projects for which I am explicitly a contact
AllAllowedProjects=All project I can read (mine + public)
AllProjects=All projects
MyProjectsDesc=This view is limited to projects you are a contact for

View File

@ -1096,23 +1096,14 @@ class Project extends CommonObject
$linkclose .= ' alt="'.dol_escape_htmltag($label, 1).'"';
}
$linkclose .= ' title="'.dol_escape_htmltag($label, 1).'"';
$linkclose .= ' class="classfortooltip"';
/*
$hookmanager->initHooks(array('projectdao'));
$parameters=array('id'=>$this->id);
// Note that $action and $object may have been modified by some hooks
$reshook=$hookmanager->executeHooks('getnomurltooltip',$parameters,$this,$action);
if ($reshook > 0)
$linkclose = $hookmanager->resPrint;
*/
$linkclose .= ' class="classfortooltip'.($morecss ? ' '.$morecss : '').'"';
}
else $linkclose = ($morecss ? ' class="'.$morecss.'"' : '');
$picto = 'projectpub';
if (!$this->public) $picto = 'project';
$linkstart = '<a href="'.$url.'"';
$linkstart .= ($morecss ? ' class="'.$morecss.'"' : '');
$linkstart .= $linkclose.'>';
$linkend = '</a>';

View File

@ -364,7 +364,7 @@ print '</div>';
if (empty($conf->global->PROJECT_HIDE_PROJECT_LIST_ON_PROJECT_AREA))
{
// This list can be very long, so we allow to hide it to prefer to use the list page.
// Add constant PROJECT_HIDE_PROJECT_LIST_ON_PROJECT_AREA to show this list
// Add constant PROJECT_HIDE_PROJECT_LIST_ON_PROJECT_AREA to hide this list
print '<br>';