From: Marcin Haba Date: Fri, 1 Jan 2016 11:04:12 +0000 (+0100) Subject: baculum: Fix showing bconsole test result in configuration wizard X-Git-Tag: Release-7.4.0~50 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eb8335eb307f02a0a93524794f3f0792b7af930e;p=bacula%2Fbacula baculum: Fix showing bconsole test result in configuration wizard --- diff --git a/gui/baculum/protected/Class/Bconsole.php b/gui/baculum/protected/Class/Bconsole.php index d16191e577..496058e238 100644 --- a/gui/baculum/protected/Class/Bconsole.php +++ b/gui/baculum/protected/Class/Bconsole.php @@ -138,7 +138,8 @@ class Bconsole extends TModule { public function testBconsoleCommand(array $command, $bconsoleCmdPath, $bconsoleCfgPath, $useSudo) { $this->setEnvironmentParams($bconsoleCmdPath, $bconsoleCfgPath, null, $useSudo); $director = array_shift($this->getDirectors()->output); - return $this->bconsoleCommand($director, $command); + $result = $this->bconsoleCommand($director, $command); + return $result; } } ?> diff --git a/gui/baculum/protected/Pages/ConfigurationWizard.page b/gui/baculum/protected/Pages/ConfigurationWizard.page index b0ca6c48e5..c070e703b0 100644 --- a/gui/baculum/protected/Pages/ConfigurationWizard.page +++ b/gui/baculum/protected/Pages/ConfigurationWizard.page @@ -157,7 +157,6 @@ -
@@ -197,8 +196,8 @@ <%[ Loading... ]%> - Validate <%[ OK ]%> - Invalidate <%[ Connection error ]%> + Validate <%[ OK ]%> + Invalidate <%[ Connection error ]%> @@ -224,7 +223,6 @@

<%[ NOTE! ]%>
<%[ {user} keyword will be replaced for each logged user into according username. ]%>

-
diff --git a/gui/baculum/protected/Pages/ConfigurationWizard.php b/gui/baculum/protected/Pages/ConfigurationWizard.php index d9a4e498ba..f541cbeec2 100644 --- a/gui/baculum/protected/Pages/ConfigurationWizard.php +++ b/gui/baculum/protected/Pages/ConfigurationWizard.php @@ -229,7 +229,6 @@ class ConfigurationWizard extends BaculumPage $isValidate = ($result === 0); $this->BconsoleTestResultOk->Display = ($isValidate === true) ? 'Dynamic' : 'None'; $this->BconsoleTestResultErr->Display = ($isValidate === false) ? 'Dynamic' : 'None'; - $this->Step4Content->render($param->NewWriter); } } ?>