Author: david
Date: Wed Mar 16 17:32:25 2011
New Revision: 9037
Log:
Explicitly search for actor as 'object' of name access point relation.
Modified:
trunk/apps/qubit/modules/actor/actions/contextMenuComponent.class.php
Modified: trunk/apps/qubit/modules/actor/actions/contextMenuComponent.class.php
==============================================================================
--- trunk/apps/qubit/modules/actor/actions/contextMenuComponent.class.php
Wed Mar 16 00:02:57 2011 (r9036)
+++ trunk/apps/qubit/modules/actor/actions/contextMenuComponent.class.php
Wed Mar 16 17:32:25 2011 (r9037)
@@ -50,12 +50,13 @@
$this->relatedInfoObjects[$item->type->getRole()][] =
$item->informationObject;
}
+ // Get "subject of" information objects (name access point)
$criteria = new Criteria;
- $criteria->add(QubitRelation::SUBJECT_ID, $this->resource->id);
+ $criteria->add(QubitRelation::OBJECT_ID, $this->resource->id);
$criteria->add(QubitRelation::TYPE_ID, QubitTerm::NAME_ACCESS_POINT_ID);
$this->subjectInfoObjects = array();
- foreach (QubitRelation::getBySubjectOrObjectId($this->resource->id) as
$item)
+ foreach (QubitRelation::get($criteria) as $item)
{
$this->subjectInfoObjects[] = $item->subject;
}
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.