Merge pull request #2344 from phl0/splitSatMode

Split SAT mode in (adv) logbook and QSO view
This commit is contained in:
Peter Goodhall 2023-07-29 11:13:49 +01:00 committed by GitHub
commit 8e47f282a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@
<?php if($row->COL_SAT_MODE != null) { ?>
<tr>
<td><?php echo lang('gen_hamradio_satellite_mode'); ?></td>
<td><?php echo $row->COL_SAT_MODE; ?></td>
<td><?php echo (strlen($row->COL_SAT_MODE) == 2 ? (strtoupper($row->COL_SAT_MODE[0]).'/'.strtoupper($row->COL_SAT_MODE[1])) : strtoupper($row->COL_SAT_MODE)); ?></td>
</tr>
<?php } ?>
<?php if($row->name != null) { ?>

View File

@ -150,7 +150,7 @@ class QSO
$this->rstR = $data['COL_RST_RCVD'];
$this->rstS = $data['COL_RST_SENT'];
$this->propagationMode = $data['COL_PROP_MODE'] ?? '';
$this->satelliteMode = $data['COL_SAT_MODE'] ?? '';
$this->satelliteMode = $data['COL_SAT_MODE'] != '' ? (strlen($data['COL_SAT_MODE']) == 2 ? (strtoupper($data['COL_SAT_MODE'][0]).'/'.strtoupper($data['COL_SAT_MODE'][1])) : strtoupper($data['COL_SAT_MODE'])) : '';
$this->satelliteName = $data['COL_SAT_NAME'] ?? '';
$this->name = $data['COL_NAME'] ?? '';