mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-13 13:09:25 +03:00
Merge pull request #471 from yoshz/bugfix/undefined-endpoint
Fixed endpoint is undefined in sandbox when custom_endpoint is disabled
This commit is contained in:
commit
40c76339b6
@ -396,9 +396,11 @@
|
|||||||
{% else -%}
|
{% else -%}
|
||||||
var endpoint = '{{ endpoint }}';
|
var endpoint = '{{ endpoint }}';
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
{% if authentication.custom_endpoint %}
|
||||||
if ($('#api_endpoint') && typeof($('#api_endpoint').val()) != 'undefined') {
|
if ($('#api_endpoint') && typeof($('#api_endpoint').val()) != 'undefined') {
|
||||||
endpoint = $('#api_endpoint').val();
|
endpoint = $('#api_endpoint').val();
|
||||||
}
|
}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
// Workaround for Firefox bug and a thereby resulting nginx incompatibility
|
// Workaround for Firefox bug and a thereby resulting nginx incompatibility
|
||||||
if (method == "LINK") {
|
if (method == "LINK") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user