Skip to content

Commit

Permalink
Fix GetTableUrl for DataPerCompany=false (#2303)
Browse files Browse the repository at this point in the history
#### Summary 
Fix GetTableUrl for Tables with `DataPerCompany=false`

#### Work Item(s)
Fixes #2262


Fixes
[AB#557526](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/557526)

---------

Co-authored-by: Jesper Schulz-Wedde <[email protected]>
  • Loading branch information
pri-kise and JesperSchulz authored Dec 10, 2024
1 parent 8792fb8 commit e46dbfa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ codeunit 8700 "Table Information Cache Impl."

procedure GetTableUrl(Company: Text; TableNo: Integer): Text
begin
if Company = '' then
Company := CompanyName(); // use the current company for the URL for the cases when table is not per company
if Company = CrossCompanyDataLbl then
Company := ''; // Clear the Company text if it is the CrossCompanyDataLbl to avoid errors with GetUrl

exit(GetUrl(ClientType::Web, Company, ObjectType::Table, TableNo));
end;
Expand Down

0 comments on commit e46dbfa

Please sign in to comment.