Search for "Base-Call" instead of Prefix+Call

这个提交包含在:
int2001 2023-10-11 15:36:42 +00:00
父节点 daab677908
当前提交 0443e94b66
找不到此签名对应的密钥
GPG 密钥 ID: DFB1C13CD2DB037B

查看文件

@ -135,7 +135,18 @@ class Logbook extends CI_Controller {
];
$return['dxcc'] = $this->dxcheck($callsign);
$return['partial'] = $this->partial($callsign);
$split_callsign=explode('/',$callsign);
if (isset($split_callsign[1]) && ($split_callsign[1] != "")) { // Do we have "/" in Call?
if (strlen($split_callsign[1])>3) { // Last Element longer than 3 chars? Take that as call
$lookupcall = $split_callsign[1];
} else { // Last Element up to 3 Chars? Take first element as Call
$lookupcall = $split_callsign[0];
}
} else {
$lookupcall=$callsign;
}
$return['partial'] = $this->partial($lookupcall);
$callbook = $this->logbook_model->loadCallBook($callsign, $this->config->item('use_fullname'));
@ -872,7 +883,11 @@ function worked_grid_before($gridsquare, $type, $band, $mode)
$fixedid = $id;
if ($id2 != "") {
$fixedid = $id . '/' . $id2;
if (strlen($id2)>3) { // Last Element longer than 3 chars? Take that as call
$fixedid = $id2;
} else { // Last Element up to 3 Chars? Take first element as Call
$fixedid = $id;
}
}
$query = $this->querydb($fixedid);