Skip to content

Instantly share code, notes, and snippets.

@sevein
Created April 15, 2011 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sevein/921701 to your computer and use it in GitHub Desktop.
Save sevein/921701 to your computer and use it in GitHub Desktop.
$this-relation was being used in other context, I created new properties "thematicAreaRelations" and "geographicRegionRelations"
--- editAction.usask.class.php 2011-04-15 15:34:34.168164792 +0200
+++ editAction.class.php 2011-04-15 15:32:01.982147000 +0200
@@ -102,7 +102,7 @@
$criteria->add(QubitTerm::TAXONOMY_ID, QubitTaxonomy::THEMATIC_AREA_ID);
$value = array();
- foreach ($this->relations = QubitObjectTermRelation::get($criteria) as $item)
+ foreach ($this->thematicAreaRelations = QubitObjectTermRelation::get($criteria) as $item)
{
$value[] = $this->context->routing->generate(null, array($item->term, 'module' => 'term'));
}
@@ -127,7 +127,7 @@
$criteria->add(QubitTerm::TAXONOMY_ID, QubitTaxonomy::GEOGRAPHIC_REGION_ID);
$value = array();
- foreach ($this->relations = QubitObjectTermRelation::get($criteria) as $item)
+ foreach ($this->geographicRegionRelations = QubitObjectTermRelation::get($criteria) as $item)
{
$value[] = $this->context->routing->generate(null, array($item->term, 'module' => 'term'));
}
@@ -263,7 +263,7 @@
$value[$resource->id] = $filtered[$resource->id] = $resource;
}
- foreach ($this->relations as $item)
+ foreach ($this->thematicAreaRelations as $item)
{
if (isset($value[$item->termId]))
{
@@ -294,7 +294,7 @@
$value[$resource->id] = $filtered[$resource->id] = $resource;
}
- foreach ($this->relations as $item)
+ foreach ($this->geographicRegionRelations as $item)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment