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.
这个提交包含在:
父节点
4d555ca886
当前提交
7c2c6cf4f0
共有 1 个文件被更改,包括 10 次插入 和 5 次删除
|
|
@ -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'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
正在加载…
在新工单中引用