From 1b3f4736c9f99b450cb715f975950ba2aa827c58 Mon Sep 17 00:00:00 2001
From: Robin van Emden <robin@pwy.nl>
Date: Thu, 16 Jun 2011 17:46:26 +0200
Subject: [PATCH] Issue #1190498: Fixed selectNodes not returning node array.

---
 resources/taxonomy_resource.inc |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/resources/taxonomy_resource.inc b/resources/taxonomy_resource.inc
index 622cf66..222e72a 100644
--- a/resources/taxonomy_resource.inc
+++ b/resources/taxonomy_resource.inc
@@ -450,10 +450,15 @@ function taxonomy_service_get_tree($vid, $parent = 0, $max_depth = NULL) {
  */
 function taxonomy_service_select_nodes($tid = '', $pager, $limit,  $order) {
   $result = taxonomy_select_nodes($tid, (bool)$pager, $limit, $order);
+  $nodes = array();
   foreach ($result as $nid) {
-    if ($uri = services_resource_uri(array('node', $nid))) {
-      $node = node_load($nid);
-      $node->uri = $uri;
+    $node = node_load($nid); 
+    if ($node) {
+      $uri = entity_uri('node', $node);
+      $node->path = url($uri['path'], array('absolute' => TRUE));
+      // Unset uri as it has complete entity and this
+      // cause never ending recursion in rendering.
+      unset($node->uri);
     }
     $nodes[] = $node;
   }
-- 
1.7.4.msysgit.0

