added missing join to station_profile to DOK award show qsos dialog
这个提交包含在:
父节点
edf54b681f
当前提交
3def0a3180
共有 2 个文件被更改,包括 4 次插入 和 0 次删除
|
|
@ -64,6 +64,7 @@ class Awards extends CI_Controller {
|
||||||
$arguments["format"] = "json";
|
$arguments["format"] = "json";
|
||||||
$arguments["limit"] = '';
|
$arguments["limit"] = '';
|
||||||
$arguments["order"] = '';
|
$arguments["order"] = '';
|
||||||
|
$arguments["join_station_profile"] = true;
|
||||||
|
|
||||||
// print_r($arguments);
|
// print_r($arguments);
|
||||||
// return;
|
// return;
|
||||||
|
|
|
||||||
|
|
@ -250,6 +250,9 @@ class API_Model extends CI_Model {
|
||||||
|
|
||||||
// Append the table we're pulling data from
|
// Append the table we're pulling data from
|
||||||
$q .= "FROM ".$this->config->item('table_name');
|
$q .= "FROM ".$this->config->item('table_name');
|
||||||
|
if (isset($arguments["join_station_profile"]) && $arguments["join_station_profile"]) {
|
||||||
|
$q .= " INNER JOIN station_profile ON ".$this->config->item('table_name').".station_id = station_profile.station_id";
|
||||||
|
}
|
||||||
|
|
||||||
// Parse the 'query' string, which is converted into a standard MySQL 'WHERE'
|
// Parse the 'query' string, which is converted into a standard MySQL 'WHERE'
|
||||||
// clause.
|
// clause.
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用