From: Marcin Haba Date: Sat, 28 Nov 2015 10:49:27 +0000 (+0100) Subject: baculum: Fix update pool action when no volumes in pool X-Git-Tag: Release-7.4.0~157 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d30dc07a318dd4316b6f9e58583e3f43f1298e9d;p=bacula%2Fbacula baculum: Fix update pool action when no volumes in pool --- diff --git a/gui/baculum/protected/Class/API.php b/gui/baculum/protected/Class/API.php index 47b59f3123..ad7a0d7bc0 100644 --- a/gui/baculum/protected/Class/API.php +++ b/gui/baculum/protected/Class/API.php @@ -30,7 +30,8 @@ class API extends TModule { private $allowedErrors = array( GenericError::ERROR_NO_ERRORS, - BconsoleError::ERROR_INVALID_COMMAND + BconsoleError::ERROR_INVALID_COMMAND, + PoolError::ERROR_NO_VOLUMES_IN_POOL_TO_UPDATE ); private function getConnection() { diff --git a/gui/baculum/protected/Class/Errors.php b/gui/baculum/protected/Class/Errors.php index 45e3d58410..410a3ca878 100644 --- a/gui/baculum/protected/Class/Errors.php +++ b/gui/baculum/protected/Class/Errors.php @@ -77,7 +77,7 @@ class PoolError extends GenericError { const ERROR_NO_VOLUMES_IN_POOL_TO_UPDATE = 41; const MSG_ERROR_POOL_DOES_NOT_EXISTS = 'Pool with inputed poolid does not exist.'; - const MSG_NO_VOLUMES_IN_POOL_TO_UPDATE= 'Pool with inputed poolid does not contain any volume to update.'; + const MSG_ERROR_NO_VOLUMES_IN_POOL_TO_UPDATE= 'Pool with inputed poolid does not contain any volume to update.'; } class JobError extends GenericError { @@ -115,4 +115,4 @@ class BVFSError extends GenericError { const MSG_ERROR_JOB_DOES_NOT_EXISTS = 'Job with inputed jobid does not exist.'; const MSG_ERROR_INVALID_PATH = 'Inputed path for restore is invalid. Proper format is b2[0-9]+.'; } -?> \ No newline at end of file +?>