Skip to content

Commit

Permalink
Merge branch 'main' into msalem/fix_scheduler_button
Browse files Browse the repository at this point in the history
  • Loading branch information
msalemcode committed Dec 27, 2023
2 parents 96a8702 + b24c563 commit 948cd8c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/Installation-Instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Copy the following section to an editor and update it to match your company pref
``` powershell
wget https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh; `
chmod +x dotnet-install.sh; `
./dotnet-install.sh --channel 6.0; `
./dotnet-install.sh -version 6.0.417; `
$ENV:PATH="$HOME/.dotnet:$ENV:PATH"; `
dotnet tool install --global dotnet-ef --version 6.0.1; `
git clone https://github.com/Azure/Commercial-Marketplace-SaaS-Accelerator.git -b 7.4.0 --depth 1; `
Expand Down Expand Up @@ -74,7 +74,7 @@ If you already have deployed the SaaS Accelerator, but you want to update it so
``` powershell
wget https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh; `
chmod +x dotnet-install.sh; `
./dotnet-install.sh --channel 6.0; `
./dotnet-install.sh -version 6.0.417; `
$ENV:PATH="$HOME/.dotnet:$ENV:PATH"; `
dotnet tool install --global dotnet-ef --version 6.0.1; `
git clone https://github.com/Azure/Commercial-Marketplace-SaaS-Accelerator.git -b <release-version-branch-to-deploy> --depth 1; `
Expand Down
5 changes: 5 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sdk": {
"version": "6.0.417"
}
}
1 change: 1 addition & 0 deletions src/AdminSite/Controllers/ApplicationConfigController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public IActionResult ApplicationConfigDetails(int Id)
[ValidateAntiForgeryToken]
public IActionResult ApplicationConfigDetails(ApplicationConfiguration appConfig)
{
appConfig.Value = appConfig.Value ?? string.Empty;
this.appConfigService.SaveAppConfig(appConfig);

this.ModelState.Clear();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
@Model.Name
</td>
<td>
@if (@Model.Name.Equals("SMTPPassword") && @Model.Value.Length > 5)
@if (@Model.Name.Equals("SMTPPassword") && @Model?.Value?.Length > 5)
{
@Html.EditorFor(model => model.Value, new { htmlAttributes = new { type ="password", @class = "form-control" } })
}
Expand Down
2 changes: 1 addition & 1 deletion src/AdminSite/Views/ApplicationConfig/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
@item.Name
</td>
<td class="text-left">
@if (@item.Name.Equals("SMTPPassword") && @item.Value.Length > 5)
@if (@item.Name.Equals("SMTPPassword") && @item?.Value?.Length > 5)
{
@String.Format("{0}{1}", @item.Value.Substring(0,5), "****************");
}
Expand Down

0 comments on commit 948cd8c

Please sign in to comment.