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

plugins_for_controllers add null true to anchor

parent c9193658
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
Pipeline #81 failed with stage
in 7 minutes and 46 seconds
......@@ -131,6 +131,7 @@ class ZendAfi_Controller_Plugin_Manager_Article {
},
'anchorOptions' => [
'onclick' => "return confirm('Etes-vous sûr de vouloir supprimer cette catégorie ?')"]],
['url' => ['controller' => 'cms',
'action' => 'add',
'id_cat' => '%s'],
......
......@@ -67,8 +67,9 @@ class ZendAfi_View_Helper_RenderModelAction {
$caption = array_key_exists(self::CAPTION, $this->_conf)
? $model->{$this->_conf[self::CAPTION]}()
: '';
$url = $this->_injectId($model->getId(), $this->_conf[self::URL]);
$url = $this->_view->url($url, null, true);
$icon = $this->_initIcon($model);
$anchorOptions = $this->_initAnchorOptions($model->getId());
$title = $this->_initTitle($model);
......@@ -84,7 +85,6 @@ class ZendAfi_View_Helper_RenderModelAction {
protected function _meetsRequirements($model) {
xdebug_break();
if (!array_key_exists(self::CONDITION, $this->_conf))
return true;
......@@ -128,6 +128,7 @@ class ZendAfi_View_Helper_RenderModelAction {
protected function _injectId($model_id, $string) {
xdebug_break();
return str_replace('%s', $model_id, $string);
}
}
......
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