From c7eb34af974c6075c6ff5e92a95fb5a2e76722d8 Mon Sep 17 00:00:00 2001 From: Gregory Hargreaves Date: Sat, 20 Oct 2018 14:41:10 +0100 Subject: [PATCH] Fixed Bug in ObjectApplyMatches, hard-coded object length broke filter matching for all but hosts --- library/Director/Objects/ObjectApplyMatches.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Objects/ObjectApplyMatches.php b/library/Director/Objects/ObjectApplyMatches.php index 5ac5abed..004e984f 100644 --- a/library/Director/Objects/ObjectApplyMatches.php +++ b/library/Director/Objects/ObjectApplyMatches.php @@ -169,7 +169,7 @@ abstract class ObjectApplyMatches $type = static::$type; if (substr($col, 0, strlen($type) + 1) === "${type}.") { - $filter->setColumn($col = substr($col, 5)); + $filter->setColumn($col = substr($col, strlen($type) + 1)); } if (array_key_exists($col, self::$columnMap)) {