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