diff --git a/src/app/contact/controllers/ContactController.php b/src/app/contact/controllers/ContactController.php index 5aebac7398e349caaab48be37a12600aebb3c9ed..b7782956fa11cba05fe32ed17f3b88ebf60c3e68 100755 --- a/src/app/contact/controllers/ContactController.php +++ b/src/app/contact/controllers/ContactController.php @@ -216,7 +216,7 @@ class ContactController $contact = [ 'id' => $rawContact['id'], - 'civility' => !empty($rawContact['civility']) ? ContactModel::getCivilityLabel(['civilityId' => $rawContact['civility']]) : null, + 'civility' => $rawContact['civility'], 'firstname' => $rawContact['firstname'], 'lastname' => $rawContact['lastname'], 'company' => $rawContact['company'], diff --git a/test/unitTests/app/contact/ContactControllerTest.php b/test/unitTests/app/contact/ContactControllerTest.php index fdd1ee6ec8f6a90043eee06c46a74e9672b8c43f..0396924d5e2d99094edfce70e0c6e729d9e9cee7 100755 --- a/test/unitTests/app/contact/ContactControllerTest.php +++ b/test/unitTests/app/contact/ContactControllerTest.php @@ -22,7 +22,7 @@ class ContactControllerTest extends TestCase $request = \Slim\Http\Request::createFromEnvironment($environment); $args = [ - 'civility' => 'Sir', + 'civility' => 'title1', 'firstname' => 'Hal', 'lastname' => 'Jordan', 'company' => 'Green Lantern Corps', @@ -82,7 +82,7 @@ class ContactControllerTest extends TestCase $request = \Slim\Http\Request::createFromEnvironment($environment); $args = [ - 'civility' => 'Sir', + 'civility' => 'title1', 'firstname' => 'Hal', 'department' => 'Sector 2814', 'function' => 'member', @@ -113,7 +113,7 @@ class ContactControllerTest extends TestCase $request = \Slim\Http\Request::createFromEnvironment($environment); $args = [ - 'civility' => 'Sir', + 'civility' => 'title1', 'lastname' => 'Sinestro', 'company' => 'Yellow Lantern Corps', 'department' => 'Sector 2813', @@ -168,7 +168,7 @@ class ContactControllerTest extends TestCase $request = \Slim\Http\Request::createFromEnvironment($environment); $args = [ - 'civility' => 'Sir', + 'civility' => 'title1', 'firstname' => 'Hal', 'department' => 'Sector 2814', 'function' => 'member',