Merge pull request #2859 from phl0/fixOneCharWajaStates
Sometimes JA prefs are one digit only...
这个提交包含在:
当前提交
b9badf2e8c
共有 1 个文件被更改,包括 2 次插入 和 2 次删除
|
|
@ -215,7 +215,7 @@ class WAJA extends CI_Model {
|
||||||
* $postdata contains data from the form, in this case Lotw or QSL are used
|
* $postdata contains data from the form, in this case Lotw or QSL are used
|
||||||
*/
|
*/
|
||||||
function getWajaWorked($location_list, $band, $postdata) {
|
function getWajaWorked($location_list, $band, $postdata) {
|
||||||
$sql = "SELECT distinct col_state FROM " . $this->config->item('table_name') . " thcv
|
$sql = "SELECT distinct LPAD(col_state, 2, '0') AS col_state FROM " . $this->config->item('table_name') . " thcv
|
||||||
where station_id in (" . $location_list . ")";
|
where station_id in (" . $location_list . ")";
|
||||||
|
|
||||||
if ($postdata['mode'] != 'All') {
|
if ($postdata['mode'] != 'All') {
|
||||||
|
|
@ -252,7 +252,7 @@ class WAJA extends CI_Model {
|
||||||
* $postdata contains data from the form, in this case Lotw or QSL are used
|
* $postdata contains data from the form, in this case Lotw or QSL are used
|
||||||
*/
|
*/
|
||||||
function getWajaConfirmed($location_list, $band, $postdata) {
|
function getWajaConfirmed($location_list, $band, $postdata) {
|
||||||
$sql = "SELECT distinct col_state FROM " . $this->config->item('table_name') . " thcv
|
$sql = "SELECT distinct LPAD(col_state, 2, '0') AS col_state FROM " . $this->config->item('table_name') . " thcv
|
||||||
where station_id in (" . $location_list . ")";
|
where station_id in (" . $location_list . ")";
|
||||||
|
|
||||||
if ($postdata['mode'] != 'All') {
|
if ($postdata['mode'] != 'All') {
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用