mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-20 07:42:17 +02:00
N°1453 Portal: Fix ajax filter on ManageBrick that was looking on "standard_search" zlist attributes instead of the brick fields.
SVN:trunk[5849]
This commit is contained in:
@@ -64,9 +64,8 @@ class ManageBrickController extends BrickController
|
|||||||
* @throws \MySQLException
|
* @throws \MySQLException
|
||||||
* @throws \OQLException
|
* @throws \OQLException
|
||||||
*/
|
*/
|
||||||
public function DisplayAction(
|
public function DisplayAction(Request $oRequest, Application $oApp, $sBrickId, $sGroupingTab, $sDisplayType = null, $sDataLoading = null)
|
||||||
Request $oRequest, Application $oApp, $sBrickId, $sGroupingTab, $sDisplayType = null, $sDataLoading = null
|
{
|
||||||
) {
|
|
||||||
/** @var ManageBrick $oBrick */
|
/** @var ManageBrick $oBrick */
|
||||||
$oBrick = ApplicationHelper::GetLoadedBrickFromId($oApp, $sBrickId);
|
$oBrick = ApplicationHelper::GetLoadedBrickFromId($oApp, $sBrickId);
|
||||||
|
|
||||||
@@ -280,7 +279,7 @@ class ManageBrickController extends BrickController
|
|||||||
$sIconURL = \MetaModel::GetClassIcon($sClass, false);
|
$sIconURL = \MetaModel::GetClassIcon($sClass, false);
|
||||||
|
|
||||||
// - Adding search clause if necessary
|
// - Adding search clause if necessary
|
||||||
$this->ManageSearchValue($oRequest, $aData, $oQuery, $sClass);
|
$this->ManageSearchValue($oRequest, $aData, $oQuery, $sClass, $aColumnsAttrs);
|
||||||
|
|
||||||
// Preparing tabs
|
// Preparing tabs
|
||||||
// - We need to retrieve distinct values for the grouping attribute
|
// - We need to retrieve distinct values for the grouping attribute
|
||||||
@@ -742,7 +741,7 @@ class ManageBrickController extends BrickController
|
|||||||
* @param DBSearch $oQuery
|
* @param DBSearch $oQuery
|
||||||
* @param string $sClass
|
* @param string $sClass
|
||||||
*/
|
*/
|
||||||
protected function ManageSearchValue(Request $oRequest, &$aData, DBSearch &$oQuery, $sClass)
|
protected function ManageSearchValue(Request $oRequest, &$aData, DBSearch &$oQuery, $sClass, $aColumnsAttrs)
|
||||||
{
|
{
|
||||||
// Getting search value
|
// Getting search value
|
||||||
$sSearchValue = $oRequest->get('sSearchValue', null);
|
$sSearchValue = $oRequest->get('sSearchValue', null);
|
||||||
@@ -751,7 +750,7 @@ class ManageBrickController extends BrickController
|
|||||||
// Note : This is a very naive search at the moment
|
// Note : This is a very naive search at the moment
|
||||||
if ($sSearchValue !== null)
|
if ($sSearchValue !== null)
|
||||||
{
|
{
|
||||||
$aSearchListItems = MetaModel::GetZListItems($sClass, 'list');
|
$aSearchListItems = $aColumnsAttrs;
|
||||||
$oFullBinExpr = null;
|
$oFullBinExpr = null;
|
||||||
foreach ($aSearchListItems as $sSearchItemAttr)
|
foreach ($aSearchListItems as $sSearchItemAttr)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user