From 786bdb1a78815f941d7c51c1376717b731c94eef Mon Sep 17 00:00:00 2001 From: llaffont <llaffont@afi-sa.fr> Date: Wed, 23 Dec 2015 15:28:58 +0100 Subject: [PATCH] hotline #34250 patrons integration: NAME column not required --- library/Class/Cosmogramme/Integration/PhasePatrons.php | 2 +- .../library/Class/Cosmogramme/Integration/PhasePatronsTest.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/library/Class/Cosmogramme/Integration/PhasePatrons.php b/library/Class/Cosmogramme/Integration/PhasePatrons.php index 17a36b41aef..e8e5fcce3ad 100644 --- a/library/Class/Cosmogramme/Integration/PhasePatrons.php +++ b/library/Class/Cosmogramme/Integration/PhasePatrons.php @@ -115,7 +115,7 @@ class Class_Cosmogramme_Integration_PhasePatrons extends Class_Cosmogramme_Integ return $this->_('Configuration: colonne %s requise', $column); }, - ['IDABON', 'NOM', 'PASSWORD'] + ['IDABON', 'PASSWORD'] )); array_map([$this->_log, 'addError'], $errors); diff --git a/tests/library/Class/Cosmogramme/Integration/PhasePatronsTest.php b/tests/library/Class/Cosmogramme/Integration/PhasePatronsTest.php index 9d7b887129b..76fa11a5c8a 100644 --- a/tests/library/Class/Cosmogramme/Integration/PhasePatronsTest.php +++ b/tests/library/Class/Cosmogramme/Integration/PhasePatronsTest.php @@ -205,7 +205,6 @@ class PhasePatronsInvalidProfilTest extends PhasePatronsTestCase { return [ [ 'IDABON' ], [ 'PASSWORD' ], - [ 'NOM' ] ]; } @@ -219,7 +218,7 @@ class PhasePatronsInvalidProfilTest extends PhasePatronsTestCase { ->setAttributs([1 => ['champs' => str_replace($column, '', - 'IDABON;ID_SIGB;ORDREABON;NOM;PRENOM;PASSWORD;MAIL; NAISSANCE; DATE_FIN ')]]) + 'IDABON;ID_SIGB;ORDREABON;NOM;PASSWORD;MAIL; NAISSANCE; DATE_FIN ')]]) ->assertSave(); $this->_phase->run(); -- GitLab