Skip to content

Page number int casting#1871

Merged
soyuka merged 2 commits into
api-platform:2.2from
IonBazan:page-number-int
Apr 18, 2018
Merged

Page number int casting#1871
soyuka merged 2 commits into
api-platform:2.2from
IonBazan:page-number-int

Conversation

@IonBazan

Copy link
Copy Markdown
Contributor
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #1860
License MIT
Doc PR no

This PR adds casting page[page] parameter to int and page number validation. It throws an error when page number is less than 1 and tries to convert a string to int when possible.

@meyerbaptiste

Copy link
Copy Markdown
Member

Can you change the base branch? Bugfixes should target the 2.2 branch.

@IonBazan

Copy link
Copy Markdown
Contributor Author

@meyerbaptiste done 😃

@teohhanhui

teohhanhui commented Apr 16, 2018

Copy link
Copy Markdown
Contributor

Is it a problem with the rebase because I see some "totalCount" stuff which is not related to this bug?

Edit: Yeah, you screwed up the rebase... 😆

@teohhanhui

Copy link
Copy Markdown
Contributor

Something like this should do it:

git reset --hard upstream/2.2
git cherry-pick 25c831e

@IonBazan

Copy link
Copy Markdown
Contributor Author

@teohhanhui I merged master and then changed PR base to 2.2. I've removed commits from the merge and now it's all ok.

@soyuka soyuka merged commit b2339c3 into api-platform:2.2 Apr 18, 2018
@soyuka

soyuka commented Apr 18, 2018

Copy link
Copy Markdown
Member

thanks @IonBazan

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.

4 participants