mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
cleanup code
SVN:trunk[5221]
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
*/
|
||||
/**
|
||||
* Adds the context parameters to the audit query
|
||||
* @param DBSearch $oFilter
|
||||
* @param ApplicationContext $oAppContext
|
||||
*/
|
||||
function FilterByContext(DBSearch &$oFilter, ApplicationContext $oAppContext)
|
||||
{
|
||||
@@ -41,6 +43,7 @@ function FilterByContext(DBSearch &$oFilter, ApplicationContext $oAppContext)
|
||||
if ( ($sAttCode != null) && MetaModel::IsValidAttCode($sObjClass, $sAttCode))
|
||||
{
|
||||
// Check if the condition points to a hierarchical key
|
||||
$bConditionAdded = false;
|
||||
if ($sAttCode == 'id')
|
||||
{
|
||||
// Filtering on the objects themselves
|
||||
|
||||
Reference in New Issue
Block a user