work on ajax tooltip
This commit is contained in:
parent
993c1d28c4
commit
7eb0b71252
@ -3716,11 +3716,11 @@ class Commande extends CommonOrder
|
||||
|
||||
/**
|
||||
* getTooltipContentArray
|
||||
* @param array $parameters
|
||||
* @param array $params params to construct tooltip data
|
||||
* @since v18
|
||||
* @return array
|
||||
*/
|
||||
public function getTooltipContentArray($parameters)
|
||||
public function getTooltipContentArray($params)
|
||||
{
|
||||
global $conf, $langs, $user;
|
||||
|
||||
@ -3730,7 +3730,7 @@ class Commande extends CommonOrder
|
||||
return ['optimize' => $langs->trans("Order")];
|
||||
}
|
||||
|
||||
if ($user->rights->commande->lire) {
|
||||
if ($user->hasRight('commande', 'lire')) {
|
||||
$datas['picto'] = img_picto('', $this->picto).' <u class="paddingrightonly">'.$langs->trans("Order").'</u>';
|
||||
if (isset($this->statut)) {
|
||||
$datas[] = ' '.$this->getLibStatut(5);
|
||||
@ -3807,7 +3807,7 @@ class Commande extends CommonOrder
|
||||
|
||||
$label = '';
|
||||
|
||||
if ($user->rights->commande->lire) {
|
||||
if ($user->hasRight('commande', 'lire')) {
|
||||
$label = img_picto('', $this->picto).' <u class="paddingrightonly">'.$langs->trans("Order").'</u>';
|
||||
if (isset($this->statut)) {
|
||||
$label .= ' '.$this->getLibStatut(5);
|
||||
|
||||
@ -106,10 +106,6 @@ if ($objecttype == 'facture' || $objecttype == 'invoice') {
|
||||
$classpath = 'adherents/class';
|
||||
$module = 'adherent';
|
||||
$myobject = 'adherent';
|
||||
} elseif ($objecttype == 'cabinetmed_cons') {
|
||||
$classpath = 'cabinetmed/class';
|
||||
$module = 'cabinetmed';
|
||||
$myobject = 'cabinetmedcons';
|
||||
} elseif ($objecttype == 'fichinter') {
|
||||
$langs->load('interventions');
|
||||
$classpath = 'fichinter/class';
|
||||
|
||||
@ -668,7 +668,7 @@ abstract class CommonObject
|
||||
* getTooltipContentArray
|
||||
*
|
||||
* @since v18
|
||||
* @param array $params
|
||||
* @param array $params params to construct tooltip data
|
||||
* @return array
|
||||
*/
|
||||
public function getTooltipContentArray($params)
|
||||
@ -679,7 +679,7 @@ abstract class CommonObject
|
||||
/**
|
||||
* getTooltipContent
|
||||
*
|
||||
* @param array $params
|
||||
* @param array $params params
|
||||
* @since v18
|
||||
* @return string
|
||||
*/
|
||||
|
||||
@ -5001,7 +5001,7 @@ class Product extends CommonObject
|
||||
|
||||
/**
|
||||
* getTooltipContentArray
|
||||
* @param array $params
|
||||
* @param array $params params to construct tooltip data
|
||||
* @since v18
|
||||
* @return array
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user