Commit e0b5b84c authored by jaapjansma's avatar jaapjansma
Browse files

fixed get relationship type

parent 26426875
...@@ -25,7 +25,7 @@ class GetRelationshipByContactId extends AbstractAction { ...@@ -25,7 +25,7 @@ class GetRelationshipByContactId extends AbstractAction {
$this->relationshipTypes = array(); $this->relationshipTypes = array();
$this->relationshipTypeIds = array(); $this->relationshipTypeIds = array();
foreach($relationshipTypesApi['values'] as $relType) { foreach($relationshipTypesApi['values'] as $relType) {
//$this->relationshipTypes[$relType['name_a_b']] = $relType['label_a_b']; $this->relationshipTypes[$relType['name_a_b']] = $relType['label_a_b'];
$this->relationshipTypeIds[$relType['name_a_b']] = $relType['id']; $this->relationshipTypeIds[$relType['name_a_b']] = $relType['id'];
} }
...@@ -216,4 +216,4 @@ class GetRelationshipByContactId extends AbstractAction { ...@@ -216,4 +216,4 @@ class GetRelationshipByContactId extends AbstractAction {
} }
} }
} }
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment