Skip to content

Commit ab6471d

Browse files
committed
[[ Bug ]] Fix use of execute script with explicitVars
This patch fixes an issue in the tree view where execute script is called with a script that contains UQLs so if the explicitVars is true the execution fails.
1 parent 138724e commit ab6471d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/widgets/treeview/treeview.lcb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ public handler OnClick() returns nothing
10251025
put tData["path"] into tPath
10261026
combine tPath with "]["
10271027
put "Really delete array element at path [" & the result & "]?" into tPrompt
1028-
execute script "answer \q" & tPrompt & "\q with OK and Cancel; return it"
1028+
execute script "answer \q" & tPrompt & "\q with \qOK\q and \qCancel\q; return it"
10291029
if the result is "OK" then
10301030
removePath(tData["path"])
10311031
end if
@@ -1721,7 +1721,7 @@ private handler addKey(in pListElt as Integer, in pPath as List, in pLevel as In
17211721
"Would you like to replace it with an empty array or " & \
17221722
"move it to the first element?" into tPrompt
17231723
execute script "answer \q" & tPrompt & \
1724-
"\q with Cancel or Replace or Move; return it"
1724+
"\q with \qCancel\q or \qReplace\q or \qMove\q; return it"
17251725
if the result is "Replace" then
17261726
put "" into tElement
17271727
else if the result is "Cancel" then

0 commit comments

Comments
 (0)