Skip to content

Commit a3f8bb0

Browse files
committed
fix issue with action callbacks
1 parent 94269f7 commit a3f8bb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Service/Action/Action.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public function process()
287287
$event = new Event('Action.onAuth', $this, ['action' => $this]);
288288
$this->Auth->authCheck($event);
289289

290-
$event = $this->dispatchEvent('Action.beforeValidate', compact('data'));
290+
$event = $this->dispatchEvent('Action.beforeValidate', []);
291291

292292
if ($event->isStopped()) {
293293
$this->dispatchEvent('Action.beforeValidateStopped', []);
@@ -300,7 +300,7 @@ public function process()
300300
throw new ValidationException(__('Validation failed'), 0, null, []);
301301
}
302302

303-
$event = $this->dispatchEvent('Action.beforeExecute', compact('data'));
303+
$event = $this->dispatchEvent('Action.beforeExecute', []);
304304

305305
if ($event->isStopped()) {
306306
$this->dispatchEvent('Action.beforeExecuteStopped', []);

0 commit comments

Comments
 (0)