Allow breakpoints to be set on triggers on views. Fixes #2528

REL-1_X
Khushboo Vashi 2017-07-03 16:15:42 +01:00 committed by Dave Page
parent f6b879233c
commit 070a9c077e
1 changed files with 6 additions and 1 deletions

View File

@ -234,11 +234,16 @@ define([
var baseUrl = "{{ url_for('debugger.index') }}" + "initialize_target/" + "indirect/" + treeInfo.server._id +
"/" + treeInfo.database._id + "/" + treeInfo.schema._id + "/" + treeInfo.trigger_function._id;
}
else if (d._type == "trigger") {
else if (d._type == "trigger" && "table" in treeInfo) {
var baseUrl = "{{ url_for('debugger.index') }}" + "initialize_target/" + "indirect/" + treeInfo.server._id +
"/" + treeInfo.database._id + "/" + treeInfo.schema._id + "/" + treeInfo.table._id +
"/" + treeInfo.trigger._id;
}
else if (d._type == "trigger" && "view" in treeInfo) {
var baseUrl = "{{ url_for('debugger.index') }}" + "initialize_target/" + "indirect/" + treeInfo.server._id +
"/" + treeInfo.database._id + "/" + treeInfo.schema._id + "/" + treeInfo.view._id +
"/" + treeInfo.trigger._id;
}
$.ajax({
url: baseUrl,