3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Ensure the table is joined.

This commit is contained in:
paul121 2021-06-04 07:59:37 -07:00 committed by Michael Stenta
parent 25abf02a75
commit 8fb00a69f3

View file

@ -18,6 +18,7 @@ class AssetOrLocationArgument extends ArgumentPluginBase {
public function query($group_by = FALSE) {
// Join the log__asset table with a condition to match the asset ID.
$this->ensureMyTable();
/** @var \Drupal\views\Plugin\views\join\JoinPluginBase $join */
$join = Views::pluginManager('join')->createInstance('standard', [
'table' => 'log__asset',