Revize 437ed5e7
Přidáno uživatelem Jan Kohlíček před téměř 7 roky(ů)
backend/app/Model/Zarizeni.php | ||
---|---|---|
67 | 67 |
'ulice.lng as lng', |
68 | 68 |
'mesto.nazev as town', |
69 | 69 |
'mesto.id as town_id', |
70 |
$showDirection ? 'zaznam_cas.smer as direction' : DB::Raw('0 as direction'))
|
|
70 |
$showDirection ? 'zaznam_cas.smer as direction' : DB::Raw('null as direction'))
|
|
71 | 71 |
->where('ulice.nazev', 'like', '%' . $address . '%') |
72 | 72 |
->orWhere('mesto.nazev', 'like', '%' . $address . '%') |
73 | 73 |
->orWhere('zarizeni.smer_popis', 'like', '%' . $address . '%'); |
frontend/app.js | ||
---|---|---|
66 | 66 |
} else if (params.deviceId && ($scope.historyUrl.deviceId !== params.deviceId || $scope.historyUrl.direction !== params.direction)) { |
67 | 67 |
$rootScope.$emit('infoLocation', {id: params.deviceId, direction: params.direction}); |
68 | 68 |
$rootScope.$emit('activeMarker', {id: params.deviceId}); |
69 |
}else if(!params.deviceId && $scope.historyUrl.deviceId){ |
|
70 |
$rootScope.selectDevice = null; |
|
71 |
$rootScope.$emit('setDefaultMap', null); |
|
69 | 72 |
} |
70 | 73 |
} |
71 | 74 |
|
Také k dispozici: Unified diff
refs #6952: Oprava chyby: API vracelo neplatné direction jako 0 změněno na NULL, při změně url se provadí kontrola prázdného deviceId