Fix tooltip on website syntax disappear

Fix backard compatibility of getLabelStatus
This commit is contained in:
Laurent Destailleur 2021-09-18 12:09:08 +02:00
parent dafc7d2617
commit 0168a9860b
3 changed files with 23 additions and 1 deletions

View File

@ -836,6 +836,17 @@ class ConferenceOrBoothAttendee extends CommonObject
return $result;
}
/**
* Return the label of the status
*
* @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto, 6=Long label + Picto
* @return string Label of status
*/
public function getLabelStatus($mode = 0)
{
return $this->LibStatut($this->status, $mode);
}
/**
* Return the label of the status
*

View File

@ -845,6 +845,17 @@ class MyObject extends CommonObject
return $result;
}
/**
* Return the label of the status
*
* @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto, 6=Long label + Picto
* @return string Label of status
*/
public function getLabelStatus($mode = 0)
{
return $this->LibStatut($this->status, $mode);
}
/**
* Return the label of the status
*

View File

@ -3127,7 +3127,7 @@ if (!GETPOST('hide_websitemenu')) {
print '</span>'; // end websitetools
print '<span class="websitehelp">';
if (GETPOST('editsource', 'alpha') || GETPOST('editcontent', 'alpha')) {
if ($action == 'editsource' || $action == 'editcontent' || GETPOST('editsource', 'alpha') || GETPOST('editcontent', 'alpha')) {
$url = 'https://wiki.dolibarr.org/index.php/Module_Website';
$htmltext = $langs->transnoentitiesnoconv("YouCanEditHtmlSource", $url);