verbb / workflow

A Craft CMS plugin to create a workflow for publishing entries.
Other
140 stars 27 forks source link

Cannot save submission - 3.0.0-beta.1 #209

Open jlachancekffein opened 1 month ago

jlachancekffein commented 1 month ago

Describe the bug

It's impossible to save a submission. Here's the error: Undefined variable $request.

The error is located on line 66 of the file src/controllers/SubmissionsController.php.

In my opinion, it should be replaced

$siteId = (int)$request->getParam('siteId'); with $siteId = (int)$this->request->getParam('siteId');

Steps to reproduce

  1. Create a submission
  2. Save the submission

Craft CMS version

5.1.2

Plugin version

3.0.0-beta.1

Multi-site?

Yes

Additional context

No response

engram-design commented 1 month ago

Fixed for the next release. To get this early, run composer require verbb/workflow:"dev-craft-5 as 3.0.0-beta.1".