From bdca0adb5629e3ef95c77a212c4583639c0c35ad Mon Sep 17 00:00:00 2001 From: David Molineus Date: Fri, 7 Dec 2018 14:26:58 +0100 Subject: [PATCH] Fix detection of the layer id. --- src/Listener/Dca/MarkerDcaListener.php | 10 ---------- src/Listener/Dca/VectorDcaListener.php | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/src/Listener/Dca/MarkerDcaListener.php b/src/Listener/Dca/MarkerDcaListener.php index 1a5ef62..ad06d4f 100644 --- a/src/Listener/Dca/MarkerDcaListener.php +++ b/src/Listener/Dca/MarkerDcaListener.php @@ -212,21 +212,11 @@ class MarkerDcaListener { // Check the current action switch (Input::get('act')) { - case 'paste': - return null; - case '': case 'create': case 'select': return (int) Input::get('id'); - case 'editAll': - case 'deleteAll': - case 'overrideAll': - case 'cutAll': - case 'copyAll': - return (int) Input::get('pid'); - default: return (int) CURRENT_ID; } diff --git a/src/Listener/Dca/VectorDcaListener.php b/src/Listener/Dca/VectorDcaListener.php index 6b10cbf..e65b31e 100644 --- a/src/Listener/Dca/VectorDcaListener.php +++ b/src/Listener/Dca/VectorDcaListener.php @@ -166,21 +166,11 @@ class VectorDcaListener extends AbstractListener { // Check the current action switch (Input::get('act')) { - case 'paste': - return null; - case '': case 'create': case 'select': return (int) Input::get('id'); - case 'editAll': - case 'deleteAll': - case 'overrideAll': - case 'cutAll': - case 'copyAll': - return (int) Input::get('pid'); - default: return (int) CURRENT_ID; }