Checks to see if eithere the name and gridsquare is set on import, and if neithere is not set, it will do the lookup. If both are set in the adi for import, no lookup will be done.

这个提交包含在:
Jeremy Brown 2020-11-11 18:42:32 -05:00
父节点 4d555ca886
当前提交 7c2c6cf4f0

查看文件

@ -1793,11 +1793,16 @@ class Logbook_model extends CI_Model {
// if we are doing lookups and grid square and name aren't set, do the lookup now
$callbook = $this->loadCallBook(strtoupper($record['call']));
if (isset($callbook)) {
$record['name']= $callbook['name'];
if (empty($record['gridsquare'])) {
$record['gridsquare'] = $callbook['gridsquare'];
if ((empty($record['name'])) || empty($record['gridsquare'])) {
$callbook = $this->loadCallBook(strtoupper($record['call']), $this->config->item('use_fullname'));
if (isset($callbook)) {
if (empty($record['name'])) {
$record['name'] = $callbook['name'];
}
if (empty($record['gridsquare'])) {
$record['gridsquare'] = $callbook['gridsquare'];
}
}
}