Skip to content

[Shopify] Remove duplicate OnAfterCreatedNewCompanyByCopyCompany subscriber#8576

Open
onbuyuka wants to merge 1 commit into
mainfrom
bugs/638257-shpfy-duplicate-subscriber
Open

[Shopify] Remove duplicate OnAfterCreatedNewCompanyByCopyCompany subscriber#8576
onbuyuka wants to merge 1 commit into
mainfrom
bugs/638257-shpfy-duplicate-subscriber

Conversation

@onbuyuka

@onbuyuka onbuyuka commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

ShpfyInstaller.Codeunit.al had two byte-for-byte identical event subscribers on Report::"Copy Company".OnAfterCreatedNewCompanyByCopyCompany:

  • ShpfyOnAfterCreatedNewCompanyByCopyCompany (kept)
  • HandleOnAfterCreatedNewCompanyByCopyCompany (removed)

Both ran Shop.ChangeCompany(NewCompanyName); Shop.ModifyAll(Enabled, false); on the newly copied company. The second handler was a redundant no-op (the first already set Enabled = false).

git blame shows both procedures landed together in #4241 (the Shopify -> BCApps migration) - clearly a copy-paste leftover. Zero functional impact, just cleanup. Kept the Shpfy* named procedure to match the naming convention used by its sibling ShpfyOnClearCompanyConfiguration directly below.

Work Item(s)

Fixes AB#638257

…criber

ShpfyInstaller.Codeunit.al had two byte-for-byte identical event subscribers on Report::`Copy Company`.OnAfterCreatedNewCompanyByCopyCompany - ShpfyOnAfterCreatedNewCompanyByCopyCompany and HandleOnAfterCreatedNewCompanyByCopyCompany. Both ran Shop.ChangeCompany + Shop.ModifyAll(Enabled, false) on the new company; the second one was a redundant no-op.

Likely a copy-paste leftover from the Shopify -> BCApps migration (PR #4241). Keeping the Shpfy* named procedure to match the sibling ShpfyOnClearCompanyConfiguration naming convention.

Fixes AB#638257

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@onbuyuka onbuyuka requested a review from a team as a code owner June 10, 2026 14:08
@github-actions github-actions Bot added the AL: Apps (W1) Add-on apps for W1 label Jun 10, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone Jun 10, 2026
@onbuyuka onbuyuka enabled auto-merge (squash) June 10, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant