diff --git a/htdocs/adherents/agenda.php b/htdocs/adherents/agenda.php
index 501b5ed87d1..343c8c4a628 100644
--- a/htdocs/adherents/agenda.php
+++ b/htdocs/adherents/agenda.php
@@ -44,6 +44,8 @@ $object = new Adherent($db);
$result=$object->fetch($id);
if ($result > 0)
{
+ $object->fetch_thirdparty();
+
$adht = new AdherentType($db);
$result=$adht->fetch($object->typeid);
}
@@ -146,7 +148,23 @@ if ($object->id > 0)
print '
';
- print load_fiche_titre($langs->trans("ActionsOnMember"),'','');
+ $out='';
+
+ /*$objthirdparty=$object->thirdparty;
+ $objcon=new stdClass();
+
+ $permok=$user->rights->agenda->myactions->create;
+ if ((! empty($objthirdparty->id) || ! empty($objcon->id)) && $permok)
+ {
+ $out.='';
+ $out.=$langs->trans("AddAnAction").' ';
+ $out.=img_picto($langs->trans("AddAnAction"),'filenew');
+ $out.="";
+ }*/
+
+ print load_fiche_titre($langs->trans("ActionsOnMember"),$out,'');
// List of todo actions
show_actions_todo($conf,$langs,$db,$object);
diff --git a/htdocs/comm/action/peruser.php b/htdocs/comm/action/peruser.php
index a8629f57d68..e7e84e08c7d 100644
--- a/htdocs/comm/action/peruser.php
+++ b/htdocs/comm/action/peruser.php
@@ -601,6 +601,7 @@ else
$colorsbytype=array();
// Loop on each user to show calendar
+$todayarray=dol_getdate($now,'fast');
$sav = $tmpday;
$showheader = true;
foreach ($usernames as $username)
@@ -629,11 +630,10 @@ foreach ($usernames as $username)
$style='cal_current_month';
if ($iter_day == 6) $style.=' cal_other_month';
$today=0;
- $todayarray=dol_getdate($now,'fast');
- if ($todayarray['mday']==$tmpday && $todayarray['mon']==$month && $todayarray['year']==$year) $today=1;
+ if ($todayarray['mday']==$tmpday && $todayarray['mon']==$tmpmonth && $todayarray['year']==$tmpyear) $today=1;
if ($today) $style='cal_today_peruser';
- show_day_events2($username, $tmpday, $month, $year, $monthshown, $style, $eventarray, 0, $maxnbofchar, $newparam, 1, 300, $showheader, $colorsbytype);
+ show_day_events2($username, $tmpday, $tmpmonth, $tmpyear, $monthshown, $style, $eventarray, 0, $maxnbofchar, $newparam, 1, 300, $showheader, $colorsbytype);
$i++;
}
@@ -642,7 +642,6 @@ foreach ($usernames as $username)
}
echo "\n";
-var_dump($eventarray);exit;
// Add js code to manage click on a box
print '