From 9a645cda31e449f814ef4347caefc55950a665aa Mon Sep 17 00:00:00 2001
From: Damien <damien.burel@maarch.org>
Date: Tue, 5 Nov 2019 16:06:49 +0100
Subject: [PATCH] FEAT #12074 TIME 0:10 Label

---
 src/app/resource/controllers/ResController.php | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/app/resource/controllers/ResController.php b/src/app/resource/controllers/ResController.php
index 971ddf00b15..9597b596d1f 100755
--- a/src/app/resource/controllers/ResController.php
+++ b/src/app/resource/controllers/ResController.php
@@ -132,7 +132,7 @@ class ResController
             'subject'               => $document['subject'],
             'chrono'                => $document['alt_identifier'],
             'typist'                => $document['typist'],
-            'labelledTypist'        => UserModel::getLabelledUserById(['id' => $document['typist']]),
+            'typistLabel'           => UserModel::getLabelledUserById(['id' => $document['typist']]),
             'status'                => $document['status'],
             'destination'           => $document['destination'],
             'initiator'             => $document['initiator'],
@@ -149,19 +149,19 @@ class ResController
 
         if (!empty($formattedData['destination'])) {
             $entity = EntityModel::getByEntityId(['entityId' => $formattedData['destination'], 'select' => ['entity_label']]);
-            $formattedData['labelledDestination'] = $entity['entity_label'];
+            $formattedData['destinationLabel'] = $entity['entity_label'];
         }
         if (!empty($formattedData['initiator'])) {
             $entity = EntityModel::getByEntityId(['entityId' => $formattedData['initiator'], 'select' => ['entity_label']]);
-            $formattedData['labelledInitiator'] = $entity['entity_label'];
+            $formattedData['initiatorLabel'] = $entity['entity_label'];
         }
         if (!empty($formattedData['status'])) {
             $status = StatusModel::getById(['id' => $formattedData['status'], 'select' => ['label_status']]);
-            $formattedData['labelledStatus'] = $status['label_status'];
+            $formattedData['statusLabel'] = $status['label_status'];
         }
         if (!empty($formattedData['priority'])) {
             $priority = PriorityModel::getById(['id' => $formattedData['priority'], 'select' => ['label']]);
-            $formattedData['labelledPriority'] = $priority['label'];
+            $formattedData['priorityLabel'] = $priority['label'];
         }
 
         return $response->withJson($formattedData);
-- 
GitLab