Skip to content
Snippets Groups Projects
Commit 443eb21b authored by llaffont's avatar llaffont
Browse files

Correction suppression avis depuis le compte lecteur #9507

parent 44b6c8fe
Branches
Tags
No related merge requests found
......@@ -144,8 +144,9 @@ class ZendAfi_View_Helper_Avis extends ZendAfi_View_Helper_BaseHelper {
$html_actions = '';
foreach($this->_actions as $action) {
$link = $this->view->tagAnchor($this->view->url(array('action' => $action.'avisnotice',
'id' => $avis->getId())),
$link = $this->view->tagAnchor($this->view->url(['controller' => 'blog',
'action' => $action.'avisnotice',
'id' => $avis->getId()]),
$this->view->boutonIco("type=$action"));
$html_actions .= "<span rel='$action'>$link</span>";
}
......
......@@ -16,7 +16,7 @@ function fonction_abonne(nIdAbon,sUrl)
{
sUrlToAbonne=sUrl;
sUrl=baseUrl + '/opac/auth/ajaxlogin';
showPopWin(sUrl, 470, 290, null);
showPopWin(sUrl, 700, 450, null);
}
}
......@@ -59,4 +59,4 @@ function redirection_abonne( sAction )
return;
}
else showPopWin(baseUrl + sAction, 500, 345, null);
}
\ No newline at end of file
}
......@@ -492,6 +492,21 @@ class BlogControllerViewAuteurActionTest extends AvisControllersFixturesTestCase
class AbonneControllerViewAvisActionTest extends AvisControllersFixturesTestCase {
public function setUp() {
parent::setUp();
$this->dispatch('/opac/abonne/viewavis/id/123456');
}
public function testDeleteMilleniumButtonPresent() {
$this->assertXPath("//a[@href='/blog/delavisnotice/id/13']");
}
}
class BlogControllerViewOtherAuteurAsAdminActionTest extends AvisControllersFixturesTestCase {
public function setUp() {
parent::setUp();
......
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