From: Roland Häder Date: Wed, 30 Jan 2013 21:29:55 +0000 (+0000) Subject: Added answer status X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f42846c75cc5b998f839de6a02c69b3737ed9d77;p=hub.git Added answer status --- 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'); } }