]> git.mxchange.org Git - hub.git/commitdiff
Added answer status
authorRoland Häder <roland@mxchange.org>
Wed, 30 Jan 2013 21:29:55 +0000 (21:29 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 30 Jan 2013 21:29:55 +0000 (21:29 +0000)
application/hub/main/handler/message-types/requests/class_NodeMessageRequestNodeListHandler.php

index 4db5c1f5da6d5a1274356768c101573f891c5eb4..684533953b9fd980bf1c7dfabdb7ab6a46fde6d8 100644 (file)
@@ -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');
        }
 }