mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-30 03:54:10 +01:00
Fix delete sql statement.
This commit is contained in:
@@ -323,14 +323,14 @@ class LayerDcaListener extends AbstractListener
|
|||||||
|
|
||||||
$undo = $statement->fetch();
|
$undo = $statement->fetch();
|
||||||
|
|
||||||
$result = $this->connection
|
$statement = $this->connection->prepare('SELECT * FROM tl_leaflet_map_layer WHERE lid=:lid');
|
||||||
->prepare('SELECT * FROM tl_leaflet_map_layer WHERE lid=?')
|
$statement->bindValue('lid', $dataContainer->id);
|
||||||
->execute($dataContainer->id);
|
$statement->execute();
|
||||||
|
|
||||||
$undo['data'] = deserialize($undo['data'], true);
|
$undo['data'] = deserialize($undo['data'], true);
|
||||||
|
|
||||||
while ($result->next()) {
|
while ($row = $statement->fetch()) {
|
||||||
$undo['data']['tl_leaflet_map_layer'][] = $result->row();
|
$undo['data']['tl_leaflet_map_layer'][] = $row;
|
||||||
}
|
}
|
||||||
|
|
||||||
$statement = $this->connection->prepare('SELECT * FROM tl_leaflet_control_layer WHERE lid=:lid');
|
$statement = $this->connection->prepare('SELECT * FROM tl_leaflet_control_layer WHERE lid=:lid');
|
||||||
|
|||||||
Reference in New Issue
Block a user