Skip to content

Commit 13ff63d

Browse files
committed
Fix context changing in pull page
1 parent 4631654 commit 13ff63d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

csp/pull.csp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@
1111
<body>
1212
<pre for="contextSelect" style="padding-top: 2em;white-space: pre-wrap;height: 60px;">Change Context: <select id="newContext" onchange="updateContext()">
1313
<server>
14-
if (%request.Data("$NAMESPACE")) {
15-
set $NAMESPACE = %request.Data("$NAMESPACE",1)
14+
if $Data(%request.Data("$NAMESPACE",1),namespace)#2 {
15+
set $NAMESPACE = namespace
1616
set contextList = ##class(SourceControl.Git.Utils).GetContexts(1)
1717
set iterator = contextList.%GetIterator()
18-
&html<<option>Select</option>>
18+
&html<<option>#(namespace)#</option>>
1919
while iterator.%GetNext(.key, .value) {
20-
&html<<option value=#(value)#>#(value)#</option>>
20+
if (namespace '= value) {
21+
&html<<option value="#(value)#">#(value)#</option>>
22+
}
2123
}
2224
}
2325
</server>

0 commit comments

Comments
 (0)