commit
411b0cf3ac
|
@ -832,7 +832,7 @@ abstract class IdoQuery extends DbQuery
|
|||
list($type, $name) = $this->customvarNameToTypeName($customvar);
|
||||
$alias = ($type === 'host' ? 'hcv_' : 'scv_') . $name;
|
||||
|
||||
$this->customVars[$customvar] = $alias;
|
||||
$this->customVars[strtolower($customvar)] = $alias;
|
||||
|
||||
if ($this->hasJoinedVirtualTable('services')) {
|
||||
$leftcol = 's.' . $type . '_object_id';
|
||||
|
|
|
@ -82,7 +82,7 @@ class Controller extends IcingaWebController
|
|||
'service_description',
|
||||
'servicegroup_name',
|
||||
function ($c) {
|
||||
return preg_match('/^_(?:host|service)_/', $c);
|
||||
return preg_match('/^_(?:host|service)_/i', $c);
|
||||
}
|
||||
));
|
||||
foreach ($this->getRestrictions($name) as $filter) {
|
||||
|
|
|
@ -185,7 +185,11 @@ abstract class DataView implements QueryInterface, SortRules, FilterColumns, Ite
|
|||
*/
|
||||
public function isValidFilterTarget($column)
|
||||
{
|
||||
return in_array($column, $this->getFilterColumns());
|
||||
// Customvar
|
||||
if ($column[0] === '_' && preg_match('/^_(?:host|service)_/i', $column)) {
|
||||
return true;
|
||||
}
|
||||
return in_array($column, $this->getColumns()) || in_array($column, $this->getStaticFilterColumns());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue