Przeglądaj źródła

[beeswax] Prevent recursive looping in tests

Check for "design" in mako templates.
Abraham Elmahrek 11 lat temu
rodzic
commit
e9d7e47
1 zmienionych plików z 1 dodań i 1 usunięć
  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"));