Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update choice_label docs to match given examples #11016

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

Closed
wants to merge 2 commits into from

Conversation

JarJak
Copy link
Contributor

@JarJak JarJak commented Feb 19, 2019

Code, description and image in the example did not match.

This method is called for *each* choice, passing you the choice ``$value`` and the
``$key`` from the choices array (``$index`` is related to `choice_value`_). This
This method is called for *each* choice, passing you the ``$choiceValue`` and the
``$key`` from the choices array (``$value`` is related to `choice_value`_). This
Copy link
Member

Choose a reason for hiding this comment

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

the "$value is related to choice_value_" part doesn't look right to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what do you propose then?

Copy link
Member

Choose a reason for hiding this comment

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

Maybe something like this:

This method is called for *each* choice, passing you the ``$choiceValue``
(related to `choice_value`_), the ``$key`` from the choices array and the
``$value``. This will give you:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@xabbuh xabbuh added this to the 3.4 milestone Feb 20, 2019
@javiereguiluz
Copy link
Member

@JarJak thanks for fixing this bug! We merged it in 3.4 branch; that's why GitHub displays it as closed instead of merged, but it's merged.

javiereguiluz added a commit that referenced this pull request Feb 21, 2019
This PR was submitted for the 4.2 branch but it was squashed and merged into the 3.4 branch instead (closes #11016).

Discussion
----------

Update choice_label docs to match given examples

Code, description and image in the example did not match.

Commits
-------

67e716b Update choice_label docs to match given examples
@JarJak JarJak deleted the patch-4 branch February 21, 2019 19:58
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.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.