diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 132c924d107bb..035d922e0c18b 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -6754,8 +6754,11 @@ function showrefnav($object,$paramid,$morehtml='',$shownav=1,$fieldid='rowid',$f // Special case for project/task page if ($paramid == 'project_ref') { - $navurl = preg_replace('/\/tasks\/(task|contact|time|note|document)\.php/','/tasks.php',$navurl); - $paramid='ref'; + if (preg_match('/\/tasks\/(task|contact|note|document)\.php/', $navurl)) // TODO Remove this when nav with project_ref on task pages are ok + { + $navurl = preg_replace('/\/tasks\/(task|contact|time|note|document)\.php/', '/tasks.php', $navurl); + $paramid='ref'; + } } // accesskey is for Windows or Linux: ALT + key for chrome, ALT + SHIFT + KEY for firefox diff --git a/htdocs/langs/en_US/projects.lang b/htdocs/langs/en_US/projects.lang index 178cb4092d962..e2d6d87838c0d 100644 --- a/htdocs/langs/en_US/projects.lang +++ b/htdocs/langs/en_US/projects.lang @@ -235,3 +235,4 @@ RecordsClosed=%s project(s) closed SendProjectRef=Information project %s ModuleSalaryToDefineHourlyRateMustBeEnabled=Module 'Salaries' must be enabled to define employee hourly rate to have time spent valorized NewTaskRefSuggested=Task ref already used, a new task ref is required +TimeSpentInvoiced=Time spent billed \ No newline at end of file