Skip to content
Snippets Groups Projects
Commit c472b22c authored by Meusburger's avatar Meusburger
Browse files

Merge branch 'hotline#28200_newsletter_record_link' into 'stable'

Hotline#28200 newsletter record link

See merge request !1066
parents d837d6a0 f6e9fb1d
Branches
Tags
No related merge requests found
- ticket #28200 : correction de l'url absolue vers les notices dans les newsletters
\ No newline at end of file
......@@ -234,8 +234,9 @@ class Class_Newsletter extends Storm_Model_Abstract {
->tagAnchor($view->absoluteUrl(
[ 'controller' => 'recherche',
'action' => 'viewnotice',
'id' => $notice->getId()]
),
'id' => $notice->getId()],
null, true
),
$view->tagImg($vignette,
['style' => 'float:left;width:50px;vertical-align:top;padding:5px',
'alt' => 'vignette']
......
......@@ -579,6 +579,11 @@ class Admin_NewsletterControllerPreviewActionTest extends Admin_NewsletterContro
public function noticeShouldBePresent() {
$this->assertQueryContentContains('p', 'Martine à la plage', $this->_response->getBody());
}
/** @test */
public function noticeMartineALaPlageUrlShouldBeRechercheViewNotice42() {
$this->assertXPath('//a[@href="http://localhost' . BASE_URL . '/recherche/viewnotice/id/42"]');
}
}
......
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