Skip to content
Snippets Groups Projects
Commit db4d8c17 authored by Ghislo's avatar Ghislo
Browse files

manager plugin improve render model actions

parent 5b9c9076
Branches
Tags
5 merge requests!2080Sandbox detach zf from storm,!2061Master,!1989Dev#45275 3155 contractuel application nouvelle methode d edition par lot des articles aux collections,!1968full plugin mod for multiselection,!1959Dev#45275 3155 contractuel application nouvelle methode d edition par lot des articles aux collections
......@@ -30,7 +30,7 @@ class ZendAfi_View_Helper_RenderModelActions extends ZendAfi_View_Helper_BaseHel
$html .= (new ZendAfi_View_Helper_RenderModelAction($action, $this->view))
->render($model);
return $this->view->tag('div', $html, ['class' => 'actions']);
return $this->_tag('div', $html, ['class' => 'actions']);
}
}
......@@ -119,12 +119,18 @@ class ZendAfi_View_Helper_RenderModelAction {
protected function _initUrl($model) {
$id = $model->getId();
if(!isset($this->_conf[self::URL]))
return '';
if(!$url = $this->_conf[self::URL])
return '';
return is_array($url)
? $this->_view->url($this->_injectIdIn($id, $url), null, true)
$url = is_array($url)
? $this->_injectIdIn($id, $url)
: $this->_injectId($id, $url);
return Class_Url::absolute($url);
}
protected function _injectIdIn($model_id, $attribs) {
......
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