Explorar o código

[beeswax] Prevent recursive looping in tests

Check for "design" in mako templates.
Abraham Elmahrek %!s(int64=11) %!d(string=hai) anos
pai
achega
e9d7e47
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/beeswax/src/beeswax/templates/execute.mako

+ 1 - 1
apps/beeswax/src/beeswax/templates/execute.mako

@@ -1167,7 +1167,7 @@ $(document).ready(function () {
     $("#validationResults").empty();
   });
 
-  % if not design.id and not ( query_history and query_history.id ):
+  % if not (design and design.id) and not ( query_history and query_history.id ):
     if ($.totalStorage("${app_name}_temp_query") != null && $.totalStorage("${app_name}_temp_query") != "") {
       viewModel.queryEditorBlank(true);
       codeMirror.setValue($.totalStorage("${app_name}_temp_query"));