From: Marcin Haba Date: Sun, 7 Feb 2021 14:43:44 +0000 (+0100) Subject: baculum: Fix undefined property error in run job API endpoint if level value is not... X-Git-Tag: Release-11.0.2~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51ae8a614f381b27351d5269ef7c2c3bbc07b0f2;p=thirdparty%2Fbacula.git baculum: Fix undefined property error in run job API endpoint if level value is not provided --- diff --git a/gui/baculum/protected/API/Pages/API/JobRun.php b/gui/baculum/protected/API/Pages/API/JobRun.php index 1a98a6255..86c781e50 100644 --- a/gui/baculum/protected/API/Pages/API/JobRun.php +++ b/gui/baculum/protected/API/Pages/API/JobRun.php @@ -113,7 +113,7 @@ class JobRun extends BaculumAPIServer { } } - $is_valid_level = $this->getModule('misc')->isValidJobLevel($params->level); + $is_valid_level = $this->getModule('misc')->isValidJobLevel($level); if(!$is_valid_level) { $this->output = JobError::MSG_ERROR_INVALID_JOBLEVEL; $this->error = JobError::ERROR_INVALID_JOBLEVEL;