Merge pull request #5892 from philippe-opendsi/develop
NEW : Add create events on project card
This commit is contained in:
commit
4e9f7c0fa8
@ -970,7 +970,16 @@ else
|
||||
{
|
||||
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 ($userWrite > 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user