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

Only show request format dropdown when there are multiple formats #486

Merged
merged 1 commit into from
Aug 21, 2014

Conversation

JeroenDeDauw
Copy link
Contributor

No description provided.

willdurand added a commit that referenced this pull request Aug 21, 2014
Only show request format dropdown when there are multiple formats
@willdurand willdurand merged commit ce54848 into nelmio:master Aug 21, 2014
@@ -24,11 +24,13 @@
{% if 'json' in bodyFormats %}<option value="json"{{ defaultBodyFormat == 'json' ? ' selected' : '' }}>JSON</option>{% endif %}
</select>
{% endif %}
{% if bodyFormats|length > 0 %}
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be requestFormats|length instead of bodyFormats|length?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops. Good catch :)

willdurand added a commit that referenced this pull request Aug 21, 2014
@JeroenDeDauw JeroenDeDauw deleted the patch-1 branch August 21, 2014 23:40
bezhermoso pushed a commit to bezhermoso/NelmioApiDocBundle that referenced this pull request Sep 8, 2014
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.

3 participants