Skip to content
Snippets Groups Projects
Commit 23ccdeaf authored by Ghislain Loas's avatar Ghislain Loas
Browse files

Merge branch 'hotline#128187_drm_lcp' into 'hotline'

hotline #128187 fix carthame borrower idabon update when logging

See merge request !4274
parents 89eae00e 8a18ffc8
Branches
Tags
2 merge requests!4276Hotline,!4274hotline #128187 fix carthame borrower idabon update when logging
Pipeline #15231 passed with stage
in 26 minutes and 3 seconds
- ticket #128187 : SIGB Carthame : correction de la mise à jour automatique du numéro d'abonné lors de la connexion au portail.
\ No newline at end of file
......@@ -49,6 +49,14 @@ class Class_WebService_SIGB_Carthame_AccountResponseReader {
}
public function endSFo($data) {
if (!$this->_xml_parser->inParents('F000'))
return;
$this->_emprunteur->setCodeBarres($data);
}
public function startF400() {
$this->_current_emprunt = Class_WebService_SIGB_Emprunt::newInstanceWithEmptyExemplaire();
}
......
......@@ -644,14 +644,20 @@ class CarthameEmprunteurPatrickBTest extends CarthameOperationTestCase {
'login' => 'pbarroca',
'password' => '1974',
'role_level' => ZendAfi_Acl_AdminControllerRoles::ABONNE_SIGB,
'idabon' => 'pbarroca',
'idabon' => '898908098',
'id_site' => 3,
'int_bib' => $library]);
ZendAfi_Auth::getInstance()->logUser($user);
$this->emprunteur = $this->service->getEmprunteur($user);
}
/** @test */
public function userBarrocaIdAbonShouldNotBeUpdated() {
$this->emprunteur->updateUser(Class_Users::find(56));
$this->assertEquals('898908098', Class_Users::find(56)->getIdabon());
}
......@@ -1169,6 +1175,7 @@ class CarthameTestFixtures {
<SFb>I</SFb>
<SFd>5</SFd>
<SFe>10</SFe>
<SFo>898908098</SFo>
</F000>
<F100>
<SFa>Barroca, Patrick</SFa>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment