diff --git a/ChangeLog b/ChangeLog index 8e94283923e..ddd3c6f33b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,15 +5,16 @@ English Dolibarr ChangeLog ***** ChangeLog for 3.7 compared to 3.6.* ***** For users: -New: [ task #867 ] Remove ESAEB external module code from core. -New: Can create proposal from an intervention. -New: Can filter events on a group of users. +- New: [ task #867 ] Remove ESAEB external module code from core. +- New: Can create proposal from an intervention. +- New: Can filter events on a group of users. +- New: Add thirdparty to filter on events. For translators: - Update language files. For developers: -- +- New: Add hook "searchAgendaFrom". ***** ChangeLog for 3.6 compared to 3.5.* ***** diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index da5b7f95137..ef5bf1c68bf 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -56,9 +56,10 @@ if (! $sortorder) $sortorder="ASC"; if (! $sortfield) $sortfield="a.datec"; // Security check -$socid = GETPOST("socid","int",1); +$socid = GETPOST("socid","int"); if ($user->societe_id) $socid=$user->societe_id; $result = restrictedArea($user, 'agenda', 0, '', 'myactions'); +if ($socid < 0) $socid=''; $canedit=1; if (! $user->rights->agenda->myactions->read) accessforbidden(); @@ -102,6 +103,8 @@ $langs->load("agenda"); $langs->load("other"); $langs->load("commercial"); +// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array +$hookmanager->initHooks(array('agenda')); /* @@ -993,7 +996,7 @@ else // View by day $timestamp=dol_mktime(12,0,0,$month,$day,$year); $arraytimestamp=dol_getdate($timestamp); - echo '
| '.$langs->trans("Day".$arraytimestamp['wday'])." | \n"; echo "