Add create events on project card when MAIN_ADD_EVENT_ON_ELEMENT_CARD is
enabled like for propal, order and invoice The new event is linked to the project
This commit is contained in:
parent
19532c9965
commit
9ee61d20e3
@ -970,7 +970,16 @@ else
|
|||||||
{
|
{
|
||||||
if ($action != "edit" )
|
if ($action != "edit" )
|
||||||
{
|
{
|
||||||
// Modify
|
|
||||||
|
// Create event
|
||||||
|
if ($conf->agenda->enabled && ! empty($conf->global->MAIN_ADD_EVENT_ON_ELEMENT_CARD)) // Add hidden condition because this is not a
|
||||||
|
// "workflow" action so should appears somewhere else on
|
||||||
|
// page.
|
||||||
|
{
|
||||||
|
print '<div class="inline-block divButAction"><a class="butAction" href="'.DOL_URL_ROOT.'/comm/action/card.php?action=create&origin=' . $object->element . '&originid=' . $object->id . '&socid=' . $object->socid . '&projectid=' . $object->id . '">' . $langs->trans("AddAction") . '</a></div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Modify
|
||||||
if ($object->statut != 2 && $user->rights->projet->creer)
|
if ($object->statut != 2 && $user->rights->projet->creer)
|
||||||
{
|
{
|
||||||
if ($userWrite > 0)
|
if ($userWrite > 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user