From 29a4ffd1690860bec64039359ce16518ff0b5c42 Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Sat, 28 Nov 2015 11:07:29 +0100 Subject: [PATCH] baculum: Add drive parameter to bconsole release command execution --- gui/baculum/protected/Pages/API/StorageRelease.php | 6 ++++-- gui/baculum/protected/application.xml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gui/baculum/protected/Pages/API/StorageRelease.php b/gui/baculum/protected/Pages/API/StorageRelease.php index 8d58565c50..d272f4dddd 100644 --- a/gui/baculum/protected/Pages/API/StorageRelease.php +++ b/gui/baculum/protected/Pages/API/StorageRelease.php @@ -23,9 +23,11 @@ class StorageRelease extends BaculumAPI { public function get() { $storageid = intval($this->Request['id']); + $drive = intval($this->Request['drive']); + $storage = $this->getModule('storage')->getStorageById($storageid); if(!is_null($storage)) { - $storageRelease = $this->getModule('bconsole')->bconsoleCommand($this->director, array('release', 'storage="' . $storage->name . '"'), $this->user); + $storageRelease = $this->getModule('bconsole')->bconsoleCommand($this->director, array('release', 'storage="' . $storage->name . '"', 'drive="' . $drive . '"'), $this->user); $this->output = $storageRelease->output; $this->error = (integer)$storageRelease->exitcode; } else { @@ -35,4 +37,4 @@ class StorageRelease extends BaculumAPI { } } -?> \ No newline at end of file +?> diff --git a/gui/baculum/protected/application.xml b/gui/baculum/protected/application.xml index 81f622649c..116597d0f4 100644 --- a/gui/baculum/protected/application.xml +++ b/gui/baculum/protected/application.xml @@ -35,7 +35,7 @@ - + -- 2.39.5