Skip to content
Snippets Groups Projects
Commit 03b16ffa authored by Mantas Jonušas's avatar Mantas Jonušas
Browse files

Addded additional checking for nestedFilter

parent e7a1c41f
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,9 @@ class Sort extends AbstractSort
public function __construct($field, $order = self::ORDER_ASC, BuilderInterface $nestedFilter = null, $mode = null)
{
parent::__construct($field, $order, $mode);
$this->setNestedFilter($nestedFilter);
if ($nestedFilter) {
$this->setNestedFilter($nestedFilter);
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment