Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix boolean form parameters not sending as strings #357

Merged
merged 1 commit into from
Sep 3, 2019

Conversation

joshcanhelp
Copy link
Contributor

Changes

In the PR linked below, we found that true boolean form parameters were being sent as 1 and ignored by the Management API (specifically the import users endpoint). URL parameters are already converted to string versions of their boolean counterparts but not form parameters. This only affects the import users endpoint, which is only sending boolean params in the PR below.

References

Found in #354

Testing

  • This change adds test coverage
  • This change has been tested on PHP 7.1

@joshcanhelp joshcanhelp requested a review from a team August 28, 2019 21:10
@@ -45,7 +45,8 @@ public static function setUpBeforeClass()
/**
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whitespace only

@@ -45,7 +45,8 @@ public static function setUpBeforeClass()
/**
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whitespace only

@@ -41,7 +41,8 @@ class ClientGrantsTest extends ApiTests
*
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whitespace only

@joshcanhelp joshcanhelp added this to the 5.6.0 milestone Aug 28, 2019
@joshcanhelp joshcanhelp merged commit 12a4191 into master Sep 3, 2019
@joshcanhelp joshcanhelp deleted the fix-request-form-param-bool branch September 3, 2019 15:02
@github-actions
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants