mirror of
https://github.com/processwire/processwire.git
synced 2025-08-19 21:11:43 +02:00
Fix issue processwire/processwire-issues#1649
This commit is contained in:
@@ -914,6 +914,19 @@ class FieldtypePage extends FieldtypeMulti implements Module, ConfigurableModule
|
||||
return $query;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the query used for Autojoining this field
|
||||
*
|
||||
* @param Field $field
|
||||
* @param DatabaseQuerySelect $query
|
||||
* @return DatabaseQuerySelect|null
|
||||
*
|
||||
*/
|
||||
public function getLoadQueryAutojoin(Field $field, DatabaseQuerySelect $query) {
|
||||
$field->setQuietly('distinctAutojoin', true);
|
||||
return parent::getLoadQueryAutojoin($field, $query);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update a DatabaseQuerySelect object to match a Page
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user