diff --git a/src/Platform/Http/Controllers/AsyncController.php b/src/Platform/Http/Controllers/AsyncController.php index e7d952b7f..bdfc8073c 100644 --- a/src/Platform/Http/Controllers/AsyncController.php +++ b/src/Platform/Http/Controllers/AsyncController.php @@ -18,8 +18,8 @@ class AsyncController extends Controller public function load(Request $request) { $request->validate([ - '_call' => 'required|string', - '_screen' => 'required|string', + '_call' => 'required|string', + '_screen' => 'required|string', '_template' => 'required|string', ]); diff --git a/src/Screen/Layouts/Modal.php b/src/Screen/Layouts/Modal.php index d255d8267..b6e5f64b3 100644 --- a/src/Screen/Layouts/Modal.php +++ b/src/Screen/Layouts/Modal.php @@ -89,7 +89,7 @@ public function getSlug(): string public function build(Repository $repository) { $this->variables = array_merge($this->variables, [ - 'deferredRoute' => route('platform.async'), + 'deferredRoute' => route('platform.async'), 'deferrerParams' => $this->getDeferrerDataLoadingParameters(), ]); @@ -256,8 +256,8 @@ protected function getDeferrerDataLoadingParameters(): array } return [ - '_screen' => Crypt::encryptString(get_class($screen)), - '_call' => $this->dataLoadingMethod, + '_screen' => Crypt::encryptString(get_class($screen)), + '_call' => $this->dataLoadingMethod, '_template' => $this->getSlug(), ]; } diff --git a/tests/Feature/Platform/AsyncScreenTest.php b/tests/Feature/Platform/AsyncScreenTest.php index ca89d6bdf..e8b49efa4 100644 --- a/tests/Feature/Platform/AsyncScreenTest.php +++ b/tests/Feature/Platform/AsyncScreenTest.php @@ -48,7 +48,7 @@ public function testAsyncMethodNotFoundScreen(): void ->actingAs($this->createAdminUser()) ->post(route('platform.async'), [ '_screen' => Crypt::encryptString(DependentListenerScreen::class), - '_call' => Str::random(), + '_call' => Str::random(), '_template' => $layout->getSlug(), ]); @@ -71,7 +71,7 @@ public function testAsyncDeniedMethodScreen(): void 'second' => 3, ]), [ '_screen' => Crypt::encryptString(DependentListenerScreen::class), - '_call' => 'validate', + '_call' => 'validate', '_template' => $layout->getSlug(), ]);