diff --git a/htdocs/api/class/api_documents.class.php b/htdocs/api/class/api_documents.class.php index 5821df74946..fabb73c110b 100644 --- a/htdocs/api/class/api_documents.class.php +++ b/htdocs/api/class/api_documents.class.php @@ -589,8 +589,10 @@ class Documents extends DolibarrApi } elseif (is_array($ecmfile->lines) && count($ecmfile->lines) > 0) { $count = count($filearray); for ($i = 0 ; $i < $count ; $i++) { - if ($filearray[$i]['name'] == $ecmfile->lines[$i]->filename) { - $filearray[$i] = array_merge($filearray[$i], (array) $ecmfile->lines[0]); + foreach ($ecmfile->lines as $line) { + if ($filearray[$i]['name'] == $line->filename) { + $filearray[$i] = array_merge($filearray[$i], (array) $line); + } } } } diff --git a/htdocs/langs/en_US/contracts.lang b/htdocs/langs/en_US/contracts.lang index af909337ce7..7eb3335cd8f 100644 --- a/htdocs/langs/en_US/contracts.lang +++ b/htdocs/langs/en_US/contracts.lang @@ -47,6 +47,7 @@ DateContract=Contract date DateServiceActivate=Service activation date ListOfServices=List of services ListOfInactiveServices=List of not active services +ListOfNotExpiredServices=List of unexpired active services ListOfExpiredServices=List of expired active services ListOfClosedServices=List of closed services ListOfRunningServices=List of running services diff --git a/htdocs/langs/fr_FR/contracts.lang b/htdocs/langs/fr_FR/contracts.lang index 9337aa4240c..704f13b0917 100644 --- a/htdocs/langs/fr_FR/contracts.lang +++ b/htdocs/langs/fr_FR/contracts.lang @@ -47,6 +47,7 @@ DateContract=Date contrat DateServiceActivate=Date activation du service ListOfServices=Liste des services ListOfInactiveServices=Liste des services inactifs +ListOfNotExpiredServices=Liste des services actifs non expirés ListOfExpiredServices=Liste des services actifs expirés ListOfClosedServices=Liste des services fermés ListOfRunningServices=Liste des services actifs