0
我遇到Drupal 6視圖和我自己的模塊問題。我試圖讓查詢使用兩個左連接,但它拒絕承認兩個後者。這不是一個秩序問題,因爲我已將它們來回切換。Drupal 6視圖 - 左加入問題
任何人都可以看到這個問題嗎?如果有一個?
<?php
function mc_bhg_views_data() {
$data['mc_bhg_status_ref'] = array(
'table' => array(
'group' => 'BHG Loan',
'title' => 'mc_bhg_status_ref',
'join' => array(
'node' => array(
'left_field' => 'nid',
'field' => 'nid',
),
),
),
);
$data['mc_bhg_status_names'] = array(
'table' => array(
'group' => 'BHG Loan',
'title' => 'mc_bhg_status_names',
'join' => array(
'mc_bhg_status_refs' => array(
'left_field' => 'status',
'field' => 'id',
),
),
),
);
$data['mc_bhg_status_ref']['status'] = array(
'title' => t('Status ID'),
'help' => t('Relate Loan Status ID'),
'field' => array(
'handler' => 'views_handler_field',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
),
);
$data['mc_bhg_status_names']['name'] = array(
'title' => t('Status Name'),
'help' => t('Relate the Loan Status Name'),
'field' => array(
'handler' => 'views_handler_field',
'click sortable' => TRUE,
),
);
return $data;
}