Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
Fixes #482: Storage Resource not Found When Name Contains Space
  • Loading branch information
fbergkemper committed Aug 4, 2015
1 parent bc3f78a commit 7d4311e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/Storage/src/Storage/Controller/StorageController.php
Expand Up @@ -68,7 +68,7 @@ public function detailsAction()
return $this->redirect()->toRoute('storage');
}
$result = $this->getStorageTable()->getStorage($id);
$cmd = "status storage=" . $result->name;
$cmd = 'status storage="'.$result->name.'"';
$this->director = $this->getServiceLocator()->get('director');
return new ViewModel(array(
'bconsoleOutput' => $this->director->send_command($cmd),
Expand All @@ -88,7 +88,7 @@ public function autochangerAction()
return $this->redirect()->toRoute('storage');
}
$result = $this->getStorageTable()->getStorage($id);
$cmd = "status storage=" . $result->name . " slots";
$cmd = 'status storage="' . $result->name . '" slots';
$this->director = $this->getServiceLocator()->get('director');
return new ViewModel(array(
'bconsoleOutput' => $this->director->send_command($cmd),
Expand Down

0 comments on commit 7d4311e

Please sign in to comment.