Skip to content

Commit f0b6b5b

Browse files
committed
Fixed reviewed changes
1 parent e49a07d commit f0b6b5b

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2862,9 +2862,6 @@ ClassMethod ConfigureFavoriteNamespaces(username As %String, newNamespaces As %S
28622862
set link = "/isc/studio/usertemplates/gitsourcecontrol/pull.csp?$NAMESPACE=" _ installNamespace
28632863
&sql(INSERT OR UPDATE INTO %SYS_Portal.Users (Username, Page, Data) VALUES (:username, :caption, :link))
28642864
}
2865-
2866-
// Update Security.Applications
2867-
&sql(UPDATE Security.Applications SET GroupById = '%ISCMgtPortal' WHERE ID = '/isc/studio/usertemplates')
28682865
}
28692866

28702867
ClassMethod GetFavoriteNamespaces(ByRef favNamespaces As %DynamicArray, ByRef nonFavNamespaces As %DynamicArray)

csp/pull.csp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@
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-
set $NAMESPACE = %request.Data("$NAMESPACE",1)
15-
set contextList = ##class(SourceControl.Git.Utils).GetContexts(1)
16-
set iterator = contextList.%GetIterator()
17-
&html<<option>Select</option>>
18-
while iterator.%GetNext(.key, .value) {
19-
&html<<option value=#(value)#>#(value)#</option>>
14+
if (%request.Data("$NAMESPACE")) {
15+
set $NAMESPACE = %request.Data("$NAMESPACE",1)
16+
set contextList = ##class(SourceControl.Git.Utils).GetContexts(1)
17+
set iterator = contextList.%GetIterator()
18+
&html<<option>Select</option>>
19+
while iterator.%GetNext(.key, .value) {
20+
&html<<option value=#(value)#>#(value)#</option>>
21+
}
2022
}
2123
</server>
2224
</select>

0 commit comments

Comments
 (0)