Skip to content
Snippets Groups Projects

Hotline master

Merged Patrick Barroca requested to merge hotline-master into master
Compare and
+ 610
294
Preferences
Compare changes
Files
@@ -290,21 +290,21 @@ class NoticeAjaxController extends Zend_Controller_Action {
public function resnumeriquesAction() {
$html = '';
$add_album_tag = '';
if (1 == Class_AdminVar::isBibNumEnabled() && Class_Users::isCurrentUserAdmin())
$add_album_tag = $this->view->tagAnchor($this->view->url(['module' => 'admin',
'controller' => 'album',
'action' => 'link_album_to',
'id_notice' => $this->id_notice],
null, true),
$this->_('Créer un album'),
['class' => 'link_album',
'data-popup' => 'true']);
if (null !== $exemplaire = Class_Exemplaire::findFirstBy(['id_notice' => $this->id_notice]))
$html .= $this->view->renderAlbum($exemplaire->getAlbum());
$html = $add_album_tag = '';
if (1 == Class_AdminVar::isBibNumEnabled()
&& Class_Users::isCurrentUserAdmin())
$add_album_tag = $this->view
->tagAnchor($this->view->url(['module' => 'admin',
'controller' => 'album',
'action' => 'link_album_to',
'id_notice' => $this->id_notice],
null, true),
$this->_('Créer un album'),
['class' => 'link_album',
'data-popup' => 'true']);
$html .= $this->view->renderAlbum($this->notice->getAlbum());
$html .= $this->view->recordAlbums($this->notice);
if ('' == $html)