Fix order changes in layer control element aren't applied (#72).

This commit is contained in:
David Molineus
2019-02-13 12:06:30 +01:00
parent ac05d103f1
commit d42e0e122f
2 changed files with 6 additions and 0 deletions

View File

@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- Fix ordering changes in layer control element aren't recognized ([#72](https://github.com/netzmacht/contao-leaflet-maps/issues/72))
## [3.1.3] - 2019-01-10
### Fixed

View File

@@ -41,6 +41,7 @@ SELECT l.*, c.mode as controlMode
FROM tl_leaflet_layer l
LEFT JOIN tl_leaflet_control_layer c ON l.id = c.lid
WHERE c.cid=?
ORDER BY c.sorting
SQL;
$result = Database::getInstance()
@@ -67,6 +68,7 @@ FROM tl_leaflet_layer l
LEFT JOIN tl_leaflet_control_layer
c ON l.id = c.lid
WHERE c.cid=? AND l.active=1
ORDER BY c.sorting
SQL;
$result = Database::getInstance()