Browse Source

FIX missing socid into link to create event from project agenda tab

Laurent Destailleur 4 years ago
parent
commit
5aba1f9ccd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      htdocs/projet/info.php

+ 1 - 1
htdocs/projet/info.php

@@ -162,7 +162,7 @@ $morehtmlcenter = '';
 if (!empty($conf->agenda->enabled))
 {
     $addActionBtnRight = !empty($user->rights->agenda->myactions->create) || !empty($user->rights->agenda->allactions->create);
-    $morehtmlcenter .= dolGetButtonTitle($langs->trans('AddAction'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/comm/action/card.php?action=create'.$out.'&backtopage='.urlencode($_SERVER["PHP_SELF"].'?id='.$object->id), '', $addActionBtnRight);
+    $morehtmlcenter .= dolGetButtonTitle($langs->trans('AddAction'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/comm/action/card.php?action=create'.$out.'&socid='.$object->socid.'&backtopage='.urlencode($_SERVER["PHP_SELF"].'?id='.$object->id), '', $addActionBtnRight);
 }
 
 //print '</div>';