Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .AL-Go/NewBcContainer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,5 @@ Param(
# Force BcContainerHelper to use docker exec instead of WinRM sessions
$bcContainerHelperConfig.useWinRmSession = "never"

$secrets = $ENV:Secrets | ConvertFrom-Json | ConvertTo-HashTable
$gitHubPackagesContext = [Text.Encoding]::Utf8.GetString([Convert]::FromBase64String($secrets.gitHubPackagesContext))
$gitHubPackagesCredential = $gitHubPackagesContext | ConvertFrom-Json

$env:GITHUB_TOKEN = $gitHubPackagesCredential.token;
$ALGoPath = $PSScriptRoot;

$ProjectRoot = Join-Path $ALGoPath "..";
$PackageJsonPaths = Join-Path $ProjectRoot "*/package.json";

Write-Host "JS projects:"
$javascriptProjects = Get-ChildItem -Path $PackageJsonPaths | ForEach-Object {
$parent = Split-Path $_.FullName;
Write-Host $parent;
$parent;
}

$javascriptProjects | ForEach-Object {
try {
Write-Host "Building" $_ "...";
Push-Location $_;
Add-Content -Path .npmrc -Value "`n//npm.pkg.github.com/:_authToken=`${GITHUB_TOKEN}"
npm install --frozen-lockfile
npm run build:prod
}
finally {
Pop-Location;
}
}

New-BcContainer @parameters;
Invoke-ScriptInBcContainer $parameters.ContainerName -scriptblock { $progressPreference = 'SilentlyContinue' }
1 change: 1 addition & 0 deletions .AL-Go/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"country": "us",
"rulesetFile": "BEYONDIT.ruleset.json",
"appFolders": [],
"testFolders": [],
"bcptTestFolders": []
Expand Down
5 changes: 3 additions & 2 deletions .github/AL-Go-Settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"type": "PTE",
"templateUrl": "https://github.com/byndit/AL-Go-PTE@main"
}
"doNotSignApps": true,
"templateUrl": "https://github.com/microsoft/AL-Go-PTE@main"
}
6 changes: 3 additions & 3 deletions app/src/SentEmailsListPart.PageExt.al
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ pageextension 53061 "PTE Sent Emails List Part" extends "Sent Emails List Part"
EmptyGuid: Guid;
begin
if Rec.IsTemporary() then
Rec.DeleteAll();
Rec.DeleteAll(false);
if not DataTypeManagement.GetRecordRef(Document, RecRef) then
exit;
if GetSystemId(RecRef.Field(RecRef.SystemIdNo).Value) = EmptyGuid then begin
if GetSystemId(RecRef.Field(RecRef.SystemIdNo()).Value()) = EmptyGuid then begin
CurrPage.Update(false);
exit;
end;
Expand All @@ -23,4 +23,4 @@ pageextension 53061 "PTE Sent Emails List Part" extends "Sent Emails List Part"
begin
exit(SystemID);
end;
}
}
Loading