$enabled = $misc->isValidBooleanTrue($this->Request['enabled']) ? 1 : 0;
}
$voltype = $this->Request->contains('voltype') && $misc->isValidVolType($this->Request['voltype']) ? $this->Request['voltype'] : null;
+ $pool = $this->Request->contains('pool') && $misc->isValidName($this->Request['pool']) ? $this->Request['pool'] : null;
$params = $props = [];
$props['voltype'] = $voltype;
}
+ if (is_string($pool)) {
+ $props['pool'] = $pool;
+ }
+
$result = $this->getModule('volume')->getVolumes(
$params,
$props,