Skip to content

Commit 062d5d5

Browse files
committed
Consistently use Namespace instead of NSpace
This "just works" thanks to %CSP.StudioTemplateSuper.
1 parent 5f9d534 commit 062d5d5

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.1.1] - Unreleased
9+
10+
### Fixed
11+
- Link from WebUI to Settings page works properly (#230)
12+
813
## [2.1.0] - 2023-01-23
914

1015
### Added

cls/SourceControl/Git/WebUIDriver.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ ClassMethod GetURLPrefix(%request As %CSP.Request, URL As %String) As %String
212212

213213
ClassMethod GetSettingsURL(%request As %CSP.Request) As %SystemBase
214214
{
215-
set settingsURL = "/isc/studio/usertemplates/gitsourcecontrol/gitprojectsettings.csp?CSPSHARE=1&NSpace="_$namespace_"&Username="_$username
215+
set settingsURL = "/isc/studio/usertemplates/gitsourcecontrol/gitprojectsettings.csp?CSPSHARE=1&Namespace="_$namespace_"&Username="_$username
216216
set settingsURL = ..GetURLPrefix(%request, settingsURL)
217217
quit {"url": (settingsURL)}
218218
}

csp/gitprojectsettings.csp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,10 @@ body {
5757
</head>
5858
<body>
5959
<server>
60-
new $namespace
61-
set namespace = %request.Data("NSpace",1)
62-
set $namespace = namespace
63-
64-
set webuiURL = "/isc/studio/usertemplates/gitsourcecontrol/webuidriver.csp/"_$namespace_"/?CSPSHARE=1"
60+
set namespace = $namespace
61+
set webuiURL = "/isc/studio/usertemplates/gitsourcecontrol/webuidriver.csp/"_namespace_"/?CSPSHARE=1"
6562
set webuiURL = ##class(SourceControl.Git.WebUIDriver).GetURLPrefix(%request, webuiURL)
66-
63+
6764
set settings = ##class(SourceControl.Git.Settings).%New()
6865

6966
if $Data(%request.Data("gitsettings",1)) {
@@ -86,7 +83,7 @@ body {
8683
</server>
8784
<div class = 'container'>
8885
<form method='post'>
89-
<input type="hidden" name="NSpace" value="#(..EscapeHTML(namespace))#" />
86+
<input type="hidden" name="Namespace" value="#(..EscapeHTML(namespace))#" />
9087
<input type="hidden" name="gitsettings" value="1" />
9188
<div class="col-sm-12"><br></div>
9289
<div class="row">

module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Document name="git-source-control.ZPM">
44
<Module>
55
<Name>git-source-control</Name>
6-
<Version>2.1.0</Version>
6+
<Version>2.1.1</Version>
77
<Description>Server-side source control extension for use of Git on InterSystems platforms</Description>
88
<Keywords>git source control studio vscode</Keywords>
99
<Packaging>module</Packaging>

0 commit comments

Comments
 (0)