Add link to leave request for holidays in agenda
This commit is contained in:
parent
bbd7900fc7
commit
72e227a543
@ -1381,7 +1381,7 @@ class ActionComm extends CommonObject
|
|||||||
* @param int $withpicto 0 = No picto, 1 = Include picto into link, 2 = Only picto
|
* @param int $withpicto 0 = No picto, 1 = Include picto into link, 2 = Only picto
|
||||||
* @param int $maxlength Max number of charaters into label. If negative, use the ref as label.
|
* @param int $maxlength Max number of charaters into label. If negative, use the ref as label.
|
||||||
* @param string $classname Force style class on a link
|
* @param string $classname Force style class on a link
|
||||||
* @param string $option ''=Link to action, 'birthday'=Link to contact
|
* @param string $option '' = Link to action, 'birthday'= Link to contact, 'holiday' = Link to leave
|
||||||
* @param int $overwritepicto 1 = Overwrite picto
|
* @param int $overwritepicto 1 = Overwrite picto
|
||||||
* @param int $notooltip 1 = Disable tooltip
|
* @param int $notooltip 1 = Disable tooltip
|
||||||
* @param int $save_lastsearch_value -1 = Auto, 0 = No save of lastsearch_values when clicking, 1 = Save lastsearch_values whenclicking
|
* @param int $save_lastsearch_value -1 = Auto, 0 = No save of lastsearch_values when clicking, 1 = Save lastsearch_values whenclicking
|
||||||
@ -1451,6 +1451,8 @@ class ActionComm extends CommonObject
|
|||||||
$url = '';
|
$url = '';
|
||||||
if ($option == 'birthday')
|
if ($option == 'birthday')
|
||||||
$url = DOL_URL_ROOT.'/contact/perso.php?id='.$this->id;
|
$url = DOL_URL_ROOT.'/contact/perso.php?id='.$this->id;
|
||||||
|
elseif ($option == 'holiday')
|
||||||
|
$url = DOL_URL_ROOT.'/holiday/card.php?id='.$this->id;
|
||||||
else
|
else
|
||||||
$url = DOL_URL_ROOT.'/comm/action/card.php?id='.$this->id;
|
$url = DOL_URL_ROOT.'/comm/action/card.php?id='.$this->id;
|
||||||
if ($option !== 'nolink')
|
if ($option !== 'nolink')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user