Skip to content

Commit

Permalink
Fix #68 bug with missing isPost method
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Mar 11, 2024
1 parent cf3bc6b commit a5effeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BackendHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function loadDataContainerHook($table)
}

// Only handle requests from the frontend helper
if (!Input::get('rsfhr') || Input::isPost()) {
if (!Input::get('rsfhr') || System::getContainer()->get('request_stack')->getCurrentRequest()->isMethod('POST')) {
return;
}

Expand Down

0 comments on commit a5effeb

Please sign in to comment.