diff --git a/.AL-Go/NewBcContainer.ps1 b/.AL-Go/NewBcContainer.ps1 index 5f3b85f..7db5838 100644 --- a/.AL-Go/NewBcContainer.ps1 +++ b/.AL-Go/NewBcContainer.ps1 @@ -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' } diff --git a/.AL-Go/settings.json b/.AL-Go/settings.json index afc78d3..2923e7d 100644 --- a/.AL-Go/settings.json +++ b/.AL-Go/settings.json @@ -1,5 +1,6 @@ { "country": "us", + "rulesetFile": "BEYONDIT.ruleset.json", "appFolders": [], "testFolders": [], "bcptTestFolders": [] diff --git a/.github/AL-Go-Settings.json b/.github/AL-Go-Settings.json index 0d80852..25e4e82 100644 --- a/.github/AL-Go-Settings.json +++ b/.github/AL-Go-Settings.json @@ -1,4 +1,5 @@ { "type": "PTE", - "templateUrl": "https://github.com/byndit/AL-Go-PTE@main" -} \ No newline at end of file + "doNotSignApps": true, + "templateUrl": "https://github.com/microsoft/AL-Go-PTE@main" +} diff --git a/app/src/SentEmailsListPart.PageExt.al b/app/src/SentEmailsListPart.PageExt.al index 0f1e1c1..a547330 100644 --- a/app/src/SentEmailsListPart.PageExt.al +++ b/app/src/SentEmailsListPart.PageExt.al @@ -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; @@ -23,4 +23,4 @@ pageextension 53061 "PTE Sent Emails List Part" extends "Sent Emails List Part" begin exit(SystemID); end; -} \ No newline at end of file +}