From 83cd5eeb7d4739861676b22dc6c6642bc063f22f Mon Sep 17 00:00:00 2001
From: Miguel Angel Reina Ortega <miguelangel.reinaortega@etsi.org>
Date: Fri, 2 Dec 2016 06:13:49 +0100
Subject: [PATCH] f_createResource fixed so that it can be used for AE resource
 (registration)

Signed-off-by: Miguel Angel Reina Ortega <miguelangel.reinaortega@etsi.org>
---
 LibOneM2M/OneM2M_Functions.ttcn | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/LibOneM2M/OneM2M_Functions.ttcn b/LibOneM2M/OneM2M_Functions.ttcn
index d0cc6e1..8570094 100644
--- a/LibOneM2M/OneM2M_Functions.ttcn
+++ b/LibOneM2M/OneM2M_Functions.ttcn
@@ -7,7 +7,7 @@
  *  
  *  @author     ETSI
  *  @version    $URL: https://forge.etsi.org/svn/oneM2M/trunk/ttcn/LibOneM2M/OneM2M_Functions.ttcn $
- *              $Id: OneM2M_Functions.ttcn 192 2016-11-30 21:52:33Z reinaortega $
+ *              $Id: OneM2M_Functions.ttcn 194 2016-12-01 05:25:09Z reinaortega $
  *  @desc       Module containing functions for oneM2M
  *
  */
@@ -743,7 +743,9 @@ module OneM2M_Functions {
     		var integer p_locresourceIndex := p_parentIndex;
             var template ListOfURIs v_defaultListOfURIs := {"NotInitialized"};
             
-			p_request.from_ := f_getOriginator(p_parentIndex);
+			if(p_resourceType != int2) {
+				p_request.from_ := f_getOriginator(p_parentIndex);
+			}
 			p_request.to_ := f_getResourceAddress(p_parentIndex);
     		
 			if (p_resourceType == int1) {//AccessControlPolicy
-- 
GitLab