mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-02 13:03:43 +01:00
Fix detection of the layer id.
This commit is contained in:
@@ -212,21 +212,11 @@ class MarkerDcaListener
|
|||||||
{
|
{
|
||||||
// Check the current action
|
// Check the current action
|
||||||
switch (Input::get('act')) {
|
switch (Input::get('act')) {
|
||||||
case 'paste':
|
|
||||||
return null;
|
|
||||||
|
|
||||||
case '':
|
case '':
|
||||||
case 'create':
|
case 'create':
|
||||||
case 'select':
|
case 'select':
|
||||||
return (int) Input::get('id');
|
return (int) Input::get('id');
|
||||||
|
|
||||||
case 'editAll':
|
|
||||||
case 'deleteAll':
|
|
||||||
case 'overrideAll':
|
|
||||||
case 'cutAll':
|
|
||||||
case 'copyAll':
|
|
||||||
return (int) Input::get('pid');
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return (int) CURRENT_ID;
|
return (int) CURRENT_ID;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -166,21 +166,11 @@ class VectorDcaListener extends AbstractListener
|
|||||||
{
|
{
|
||||||
// Check the current action
|
// Check the current action
|
||||||
switch (Input::get('act')) {
|
switch (Input::get('act')) {
|
||||||
case 'paste':
|
|
||||||
return null;
|
|
||||||
|
|
||||||
case '':
|
case '':
|
||||||
case 'create':
|
case 'create':
|
||||||
case 'select':
|
case 'select':
|
||||||
return (int) Input::get('id');
|
return (int) Input::get('id');
|
||||||
|
|
||||||
case 'editAll':
|
|
||||||
case 'deleteAll':
|
|
||||||
case 'overrideAll':
|
|
||||||
case 'cutAll':
|
|
||||||
case 'copyAll':
|
|
||||||
return (int) Input::get('pid');
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return (int) CURRENT_ID;
|
return (int) CURRENT_ID;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user