Created
April 15, 2011 13:37
-
-
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"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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