Apply organization filtering to subclasses of Organization as well.

SVN:trunk[1502]
This commit is contained in:
Denis Flaven
2011-08-24 13:54:27 +00:00
parent 0850370275
commit 905d9b5931

View File

@@ -746,7 +746,7 @@ exit;
// Determine how to position the objects of this class
//
$aCallSpec = array($sClass, 'MapContextParam');
if ($sClass == 'Organization')
if (($sClass == 'Organization') || is_subclass_of($sClass, 'Organization'))
{
$sAttCode = 'id';
}
@@ -790,6 +790,7 @@ exit;
// Check if the condition points to a hierarchical key
$bConditionAdded = false;
if ($sAttCode == 'id')
{
// Filtering on the objects themselves