diff --git a/ChangeLog b/ChangeLog index 1d5dc78636c9e..dedb228131ef3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,7 +20,10 @@ For users: - New: Add country into table of thirdparties type. This will allow to provide a list of thirdparty types specific to a country (like argentina that need type A or B). -- New: Can force a specific bank account onto an invoice/order... +- New: Can force a specific bank account onto an invoice/order. +- New: First changes for accessibility. +- New: Home page of project area shows list of draft project (like other main page). +- New: Can search on project ref or string from project main page (like other main page). - Fix: [ bug #1487 ] PAYMENT_DELETE trigger does not intercept trigger action - Fix: [ bug #1470, #1472, #1473] User trigger problem - Fix: [ bug #1489, #1491 ] Intervention trigger problem diff --git a/htdocs/core/lib/project.lib.php b/htdocs/core/lib/project.lib.php index 4ebf543b7b1eb..e4ecb884a1ce0 100644 --- a/htdocs/core/lib/project.lib.php +++ b/htdocs/core/lib/project.lib.php @@ -623,9 +623,10 @@ function searchTaskInChild(&$inc, $parent, &$lines, &$taskrole) * @param int $socid Id thirdparty * @param int $projectsListId Id of project i have permission on * @param int $mytasks Limited to task i am contact to + * @param int $statut -1=No filter on statut, 0 or 1 = Filter on status * @return void */ -function print_projecttasks_array($db, $socid, $projectsListId, $mytasks=0) +function print_projecttasks_array($db, $socid, $projectsListId, $mytasks=0, $statut=-1) { global $langs,$conf,$user,$bc; @@ -636,9 +637,13 @@ function print_projecttasks_array($db, $socid, $projectsListId, $mytasks=0) $sortfield=''; $sortorder=''; + $title=$langs->trans("Project"); + if ($statut == 0) $title=$langs->trans("ProjectDraft"); + if ($statut == 1) $title=$langs->trans("Project").' ('.$langs->trans("Validated").')'; + print '