Fix board types not being selectable in filterpanel

This commit is contained in:
Björn Fromme
2018-07-09 22:19:58 +02:00
parent 5ac0d354e2
commit 9e465f13b4
2 changed files with 3 additions and 2 deletions
@@ -174,7 +174,7 @@ class FilterService implements SingletonInterface
'uid' => $row['boardUid'], 'uid' => $row['boardUid'],
'label' => $row['boardType'], 'label' => $row['boardType'],
]; ];
if ($row['boardUid'] && !in_array($boardType, $boardTypes)) { if (!in_array($boardType, $boardTypes)) {
$boardTypes[] = $boardType; $boardTypes[] = $boardType;
} }
@@ -625,7 +625,8 @@ class ImportService implements SingletonInterface
foreach ($selectionGroup as $selection) foreach ($selectionGroup as $selection)
{ {
$attributes = $selection->attributes(); $attributes = $selection->attributes();
$data[] = (string) $attributes['bezeichnung']; $idBusPro = (int) $attributes['idbuspro'];
$data[$idBusPro] = (string) $attributes['bezeichnung'];
} }
return $data; return $data;