Merge branch 'development' of https://github.com/PrestaShop/PrestaShop into development
This commit is contained in:
@@ -379,6 +379,39 @@ class AdminControllerCore extends Controller
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->toolbar_title = $bread_extended;
|
$this->toolbar_title = $bread_extended;
|
||||||
|
|
||||||
|
if (Tools::isSubmit('submitFilter'))
|
||||||
|
{
|
||||||
|
$filter = '';
|
||||||
|
foreach ($this->fields_list AS $field => $t)
|
||||||
|
{
|
||||||
|
if ($val = Tools::getValue($this->table.'Filter_'.$field))
|
||||||
|
{
|
||||||
|
if(!is_array($val) && !empty($val))
|
||||||
|
$filter .= ($filter ? ', ' : $this->l(' filter by ')).$t['title'].' : ';
|
||||||
|
|
||||||
|
if (isset($t['type']) && $t['type'] == 'bool')
|
||||||
|
$filter .= ((bool)$val) ? $this->l('yes') : $this->l('no');
|
||||||
|
elseif(is_string($val))
|
||||||
|
$filter .= $val;
|
||||||
|
elseif(is_array($val))
|
||||||
|
{
|
||||||
|
$tmp = '';
|
||||||
|
foreach($val as $v)
|
||||||
|
if(is_string($v) && !empty($v))
|
||||||
|
$tmp .= ' - '.$v;
|
||||||
|
if(Tools::strlen($tmp))
|
||||||
|
{
|
||||||
|
$tmp = ltrim($tmp, ' - ');
|
||||||
|
$filter .= ($filter ? ', ' : $this->l(' filter by ')).$t['title'].' : ';
|
||||||
|
$filter .= $tmp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($filter)
|
||||||
|
$this->toolbar_title[] = $filter;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -551,7 +551,6 @@ class InstallModelInstall extends InstallAbstractModel
|
|||||||
'blockviewed',
|
'blockviewed',
|
||||||
'cheque',
|
'cheque',
|
||||||
'favoriteproducts',
|
'favoriteproducts',
|
||||||
'feeder',
|
|
||||||
'graphartichow',
|
'graphartichow',
|
||||||
'graphgooglechart',
|
'graphgooglechart',
|
||||||
'graphvisifire',
|
'graphvisifire',
|
||||||
|
|||||||
Reference in New Issue
Block a user