mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Allow breakpoints to be set on triggers on views. Fixes #2528
This commit is contained in:
parent
f6b879233c
commit
070a9c077e
@ -234,11 +234,16 @@ define([
|
|||||||
var baseUrl = "{{ url_for('debugger.index') }}" + "initialize_target/" + "indirect/" + treeInfo.server._id +
|
var baseUrl = "{{ url_for('debugger.index') }}" + "initialize_target/" + "indirect/" + treeInfo.server._id +
|
||||||
"/" + treeInfo.database._id + "/" + treeInfo.schema._id + "/" + treeInfo.trigger_function._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 +
|
var baseUrl = "{{ url_for('debugger.index') }}" + "initialize_target/" + "indirect/" + treeInfo.server._id +
|
||||||
"/" + treeInfo.database._id + "/" + treeInfo.schema._id + "/" + treeInfo.table._id +
|
"/" + treeInfo.database._id + "/" + treeInfo.schema._id + "/" + treeInfo.table._id +
|
||||||
"/" + treeInfo.trigger._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({
|
$.ajax({
|
||||||
url: baseUrl,
|
url: baseUrl,
|
||||||
|
Loading…
Reference in New Issue
Block a user