Bläddra i källkod

[beeswax] Prevent recursive looping in tests

Check for "design" in mako templates.
Abraham Elmahrek 11 år sedan
förälder
incheckning
e9d7e47
1 ändrade filer med 1 tillägg och 1 borttagningar
  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"));