From 638db58da09e497b0957f1ca8658c6680865a857 Mon Sep 17 00:00:00 2001
From: Benjamin Renard <benjamin.renard@akka.eu>
Date: Mon, 1 Jul 2019 11:37:20 +0200
Subject: [PATCH] RequestMgr constructor need nodeType as argument

---
 php/classes/AmdaAction.php | 4 ++--
 php/classes/UserMgr.php    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/php/classes/AmdaAction.php b/php/classes/AmdaAction.php
index 3707905..cd1336b 100644
--- a/php/classes/AmdaAction.php
+++ b/php/classes/AmdaAction.php
@@ -172,12 +172,12 @@ class AmdaAction
 							break;
 
 						case 'condition':
-							$objectMgr = new RequestMgr();
+							$objectMgr = new RequestMgr($nodeType);
 							$info = $objectMgr->getObject($id)->expression;
 						break;
 
 						case 'request':
-						$objectMgr = new RequestMgr();
+						$objectMgr = new RequestMgr($nodeType);
 						$objplot = $objectMgr->getObject($id);
 						if (isset($objplot->name)) {
 							$info = $objplot->name;
diff --git a/php/classes/UserMgr.php b/php/classes/UserMgr.php
index 5b84185..d4580c5 100644
--- a/php/classes/UserMgr.php
+++ b/php/classes/UserMgr.php
@@ -580,9 +580,9 @@ class UserMgr
 		
 		$ok = $this->makeRemoteTree();	                      		
 
-		if (!file_exists(USERWSDIR.'Request.xml')) $reqMgr = new RequestMgr();
+		/*if (!file_exists(USERWSDIR.'Request.xml')) $reqMgr = new RequestMgr();
 		if (!file_exists(USERWSDIR.'Tt.xml')) $ttMgr = new TimeTableMgr();
-		if (!file_exists(USERWSDIR.'Alias.xml')) $ttMgr = new AliasMgr();
+		if (!file_exists(USERWSDIR.'Alias.xml')) $ttMgr = new AliasMgr();*/
 
 		//TODO sessionID = user + WSname
 		$sessionID = $this->user;
--
libgit2 0.21.2