Skip to content

IBX-8452: Fixed string substitution for Plural Value Object when casting to string#394

Merged
alongosz merged 4 commits into
4.6from
ibx-8452-fix-plural-translatable-to-string
Jul 1, 2024
Merged

IBX-8452: Fixed string substitution for Plural Value Object when casting to string#394
alongosz merged 4 commits into
4.6from
ibx-8452-fix-plural-translatable-to-string

Conversation

@alongosz
Copy link
Copy Markdown
Member

@alongosz alongosz commented Jun 27, 2024

🎫 Issue IBX-8452

Related PRs:

Description:

This is a back-port of #360 to v4.6.

When an instance of Plural value object was cast to string, it produced results opposite to the expected. For plural result it used singular message and for singular result - a plural one.

For QA:

See steps to reproduce in the JIRA issue.

Regression run: ibexa/commerce#897

Documentation:

No doc needed.

alongosz added 4 commits June 27, 2024 15:47
`\Ibexa\Contracts\Core\Repository\Values\Translation\Plural` had an incorrect casting to string implementation which resulted in the effect opposite to the desired one
@sonarqubecloud
Copy link
Copy Markdown

@alongosz alongosz requested a review from a team June 27, 2024 15:09
@konradoboza konradoboza requested a review from a team June 28, 2024 06:12
@alongosz alongosz merged commit 2069cc3 into 4.6 Jul 1, 2024
@alongosz alongosz deleted the ibx-8452-fix-plural-translatable-to-string branch July 1, 2024 11:30
@alongosz
Copy link
Copy Markdown
Member Author

alongosz commented Jul 1, 2024

Regressions passed. No QA needed after all. Merged per @adamwojs request.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants