Skip to content
Snippets Groups Projects
Commit 8e0a750b authored by Sebastien ANDRE's avatar Sebastien ANDRE Committed by Laurent
Browse files

hotline : #149168 : MT, view record allways display same media video

parent 41e11ae2
Branches
Tags
1 merge request!4341hotline : #149168 : MT, view record allways display same media video
Pipeline #16059 failed with stage
in 37 minutes and 14 seconds
- correctif #149168 : Magasin de thème : vue notice, correction l'onglet média qui affichait toujours la même vidéo par défaut
\ No newline at end of file
......@@ -34,7 +34,10 @@ class Intonation_Library_View_Wrapper_Record_RichContent_Media extends Intonatio
if ($this->_content)
return $this->_content;
$html = [$this->_view->renderAjax('noticeajax', 'media', [], $this->_getJsCallback())];
$html = [$this->_view->renderAjax('noticeajax',
'media',
['id' => $this->_model->getId()],
$this->_getJsCallback())];
return $this->_content = $this->_view->grid(implode($html));
}
......
......@@ -200,6 +200,15 @@ class TemplatesRecords_Notice_NoThumbnailVignetteTest
public function withoutUnimarcAndNoUrlVignettehtmlShouldContainsNothumbnail() {
$this->assertXPath('//div[@class = "record_no_thumbnail card card-img-overlay"]//i[@class="fas fa-book ico_xl doc_type_1 doc_types"]');
}
/**
* @see hotline : https://forge.afi-sa.net/issues/149168
* @test
**/
public function JSloadMediaShouldHaveRecordId() {
$this->assertXPathContentContains('//script', '.load("/noticeajax/media/id/1"');
}
}
......
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