mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[Advance Search] Remove duplicate modes
Think this handles sub modes correctly now although you still see USB / LSB listed if its in the main MODE window. not sure whether to make a migration to change those.
This commit is contained in:
@@ -35,18 +35,18 @@ class Logbookadvanced extends CI_Controller {
|
||||
}
|
||||
ksort($deOptions);
|
||||
$deOptions = array_keys($deOptions);
|
||||
|
||||
$modes = [];
|
||||
if ($stationIds !== []) {
|
||||
foreach ($this->logbookadvanced_model->get_worked_modes($stationIds) as $mode) {
|
||||
$key = $mode['mode'];
|
||||
if ($mode['submode'] !== null) {
|
||||
if ($mode['submode'] != null) {
|
||||
$key .= "|" . $mode['submode'];
|
||||
}
|
||||
|
||||
if ($mode['submode'] == null) {
|
||||
$modes[$key] = $mode['mode'];
|
||||
} else {
|
||||
$modes[$key] = $mode['submode'];
|
||||
$modes[$key] = $mode['mode'] . " | ".$mode['submode'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user