From f42846c75cc5b998f839de6a02c69b3737ed9d77 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 30 Jan 2013 21:29:55 +0000 Subject: [PATCH] Added answer status --- .../requests/class_NodeMessageRequestNodeListHandler.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/application/hub/main/handler/message-types/requests/class_NodeMessageRequestNodeListHandler.php b/application/hub/main/handler/message-types/requests/class_NodeMessageRequestNodeListHandler.php index 4db5c1f5d..684533953 100644 --- a/application/hub/main/handler/message-types/requests/class_NodeMessageRequestNodeListHandler.php +++ b/application/hub/main/handler/message-types/requests/class_NodeMessageRequestNodeListHandler.php @@ -126,6 +126,12 @@ class NodeMessageRequestNodeListHandler extends BaseMessageHandler implements Ha // Copy from source to targetKey $this->getConfigInstance()->setConfigEntry($targetKey, $this->getConfigInstance()->getConfigEntry($sourceKey)); } // END - foreach + + // Translate last exception into a status code + $statusCode = $this->getTranslatedStatusFromLastException(); + + // Set it in configuration (temporarily) + $this->getConfigInstance()->setConfigEntry('answer_status', $statusCode); } /** @@ -141,6 +147,9 @@ class NodeMessageRequestNodeListHandler extends BaseMessageHandler implements Ha // Now unset this configuration entry (to save some memory again) $this->getConfigInstance()->unsetConfigEntry($configKey); } // END - foreach + + // Remove answer status as well + $this->getConfigInstance()->unsetConfigEntry('answer_status'); } } -- 2.39.5