Skip to content
Snippets Groups Projects
Commit b9dc2b6d authored by efalcy's avatar efalcy
Browse files

dev #37314 : fix patch sql error

parent 3409a538
Branches
Tags
7 merge requests!1587Master,!1553Master,!1539Master,!1534Dev#32668 bib form custom fields refacto master,!1532Dev#37314 bibliotheque mode d affichage un champ saisi un bloc a styliser dans la charte,!1508Dev#37314 bibliotheque mode d affichage un champ saisi un bloc a styliser dans la charte,!1488Dev#37314 bibliotheque mode d affichage un champ saisi un bloc a styliser dans la charte
<?php
$adapter = Zend_Db_Table::getDefaultAdapter();
try {
$adapter->query('alter table custom_field_values add index (value(50));');
} catch(Exception $e) {}
?>
......@@ -28,13 +28,13 @@ class ZendAfi_View_Helper_BibView extends ZendAfi_View_Helper_BaseHelper {
return
$this->_tag('h1', $this->_('Fiche de la bibliothèque :')) .
$this->_renderTable() .
$this->_renderBlocks() .
$this->_renderPicture() .
$this->_renderBackLink($back_url);
}
protected function _renderTable() {
protected function _renderBlocks() {
return
$this->_renderBlock(
$this->_renderName() .
......@@ -198,7 +198,10 @@ class ZendAfi_View_Helper_BibView extends ZendAfi_View_Helper_BaseHelper {
}
$content_options='';
foreach (array_filter($options) as $option) {
$content_options .= $this->_tag('dd', $option);
$cleaned_name=iconv('UTF-8','ASCII//TRANSLIT//IGNORE',$option);
$cleaned_name=str_replace(' ','_',$cleaned_name);
$content_options .= $this->_tag('dd', $option, ['class' => $cleaned_name]);
}
return $content_options;
}
......
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