Skip to content
Snippets Groups Projects
Commit 2935cbc3 authored by Laurent's avatar Laurent
Browse files

Merge branch 'hotline#109273_facette_site_vide' into 'hotline'

hotline #109273 Nanook : fix read of locationId

See merge request !3658
parents 24d72d21 c6d3c010
Branches
Tags
3 merge requests!3679Hotline,!3678merge Hotline,!3658hotline #109273 Nanook : fix read of locationId
Pipeline #11220 failed with stage
in 45 minutes and 40 seconds
- ticket #109273 : Web-Services Nanook : correction de l'affection de l'annexe aux exemplaires lorsque les identifiants bibliothèques et annexes sont différents
\ No newline at end of file
......@@ -140,10 +140,7 @@ class Class_WebService_SIGB_Nanook_GetRecordsResponseReader {
* @param string $data
*/
public function endLocationId($data) {
if ($annexe = Class_CodifAnnexe::findFirstBy(['id_origine' => $data]))
$this->_current_item->setCodeAnnexe($annexe->getIdBib());
else
$this->_current_item->setCodeAnnexe((int)$data);
$this->_current_item->setCodeAnnexe((int)$data);
}
......
......@@ -28,6 +28,12 @@ class Intonation_View_RenderAjax extends ZendAfi_View_Helper_BaseHelper {
'action' => $action],
$params);
if (($ig = Zend_Controller_Front::getInstance()
->getPlugin('ZendAfi_Controller_Plugin_InspectorGadget'))
&& ($ig->isEnabled()))
$url['inspector_gadget'] = 1;
Class_ScriptLoader::getInstance()
->addJQueryReady(sprintf('$("#%s").load("%s", function() {%s;});',
$id,
......
......@@ -387,8 +387,8 @@ class NanookGetNoticeLiliGrisbiAndCoTest extends NanookTestCase {
/** @test */
public function thirdExemplaireCodeAnnexeShouldBeThree() {
$this->assertEquals(3, $this->_notice->exemplaireAt(2)->getCodeAnnexe());
public function thirdExemplaireCodeAnnexeShouldBeTen() {
$this->assertEquals(10, $this->_notice->exemplaireAt(2)->getCodeAnnexe());
}
......
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