瀏覽代碼

[beeswax] Prevent recursive looping in tests

Check for "design" in mako templates.
Abraham Elmahrek 11 年之前
父節點
當前提交
e9d7e47
共有 1 個文件被更改,包括 1 次插入1 次删除
  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"));