Skip to content

Fixed return value for actionSaveSettings - #39

Closed
vnali wants to merge 1 commit into
craftcms:developfrom
vnali:patch-2
Closed

vnali wants to merge 1 commit into
craftcms:developfrom
vnali:patch-2

Conversation

@vnali

@vnali vnali commented Nov 10, 2022

Copy link
Copy Markdown
Contributor

Description
saving API Connection tab without filling inputs throws an error
craft\shopify\controllers\SettingsController::actionSaveSettings(): Return value must be of type yii\web\Response, null returned

this PR adds null to accepted return values.

@AugustMiller

Copy link
Copy Markdown
Contributor

Hey, thanks for the report and patch! We had a couple more related items come up that we wanted to patch, but your changes have been incorporated into #40.

The only difference is that we've opted for craft\web\Response return types, and only made it nullable on the actionSaveSettings method, as actionIndex should always return a rendered template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants