From 5d43f463cf65490c35d4dff17a18de09cab394fb Mon Sep 17 00:00:00 2001 From: Bruce HELLER Date: Thu, 7 Aug 2014 16:45:46 +0200 Subject: [PATCH] Fixed the wrong endpoint value check when no endpoint is set in config. --- Resources/views/layout.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index a5394b2..a33a4ab 100755 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -396,7 +396,7 @@ {% else -%} var endpoint = '{{ endpoint }}'; {% endif -%} - if ($('#api_endpoint') && $('#api_endpoint').val() != '') { + if ($('#api_endpoint') && typeof($('#api_endpoint').val()) != 'undefined') { endpoint = $('#api_endpoint').val(); }