mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 10:08:45 +02:00
Portal: Fix regression in FilterBrick that crashes when pointing on a ManageBrick.
SVN:trunk[5848]
This commit is contained in:
@@ -751,7 +751,7 @@ class ManageBrickController extends BrickController
|
||||
// Note : This is a very naive search at the moment
|
||||
if ($sSearchValue !== null)
|
||||
{
|
||||
$aSearchListItems = MetaModel::GetZListItems($sClass, 'standard_search');
|
||||
$aSearchListItems = MetaModel::GetZListItems($sClass, 'list');
|
||||
$oFullBinExpr = null;
|
||||
foreach ($aSearchListItems as $sSearchItemAttr)
|
||||
{
|
||||
|
||||
@@ -23,15 +23,15 @@ class ManageBrickRouter extends AbstractRouter
|
||||
{
|
||||
static $aRoutes = array(
|
||||
array(
|
||||
'pattern' => '/manage/{sBrickId}/{sDisplayType}/{sGroupingTab}',
|
||||
'pattern' => '/manage/{sBrickId}/{sGroupingTab}/{sDisplayType}',
|
||||
'callback' => 'Combodo\\iTop\\Portal\\Controller\\ManageBrickController::DisplayAction',
|
||||
'bind' => 'p_manage_brick',
|
||||
'asserts' => array(
|
||||
'sDisplayType' => 'badge|pie-chart|bar-chart|top-list|default'
|
||||
),
|
||||
'values' => array(
|
||||
'sDisplayType' => null, // will be set using brick's XML config
|
||||
'sGroupingTab' => null
|
||||
'sDisplayType' => 'default',
|
||||
'sGroupingTab' => null,
|
||||
)
|
||||
),
|
||||
array(
|
||||
@@ -40,12 +40,12 @@ class ManageBrickRouter extends AbstractRouter
|
||||
'bind' => 'p_manage_brick_lazy',
|
||||
'asserts' => array(
|
||||
'iPageNumber' => '\d+',
|
||||
'iListLength' => '\d+'
|
||||
'iListLength' => '\d+',
|
||||
),
|
||||
'values' => array(
|
||||
'sDataLoading' => 'lazy',
|
||||
'iPageNumber' => '1',
|
||||
'iListLength' => '20'
|
||||
'iListLength' => '20',
|
||||
)
|
||||
),
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user