diff --git a/CHANGELOG.md b/CHANGELOG.md index c007e70..446a652 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/Model/ControlModel.php b/src/Model/ControlModel.php index 367c0eb..da50902 100644 --- a/src/Model/ControlModel.php +++ b/src/Model/ControlModel.php @@ -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()