diff --git a/sources/application/UI/Base/Layout/NavigationMenu/NavigationMenu.php b/sources/application/UI/Base/Layout/NavigationMenu/NavigationMenu.php index a5283934b..2cbc311d3 100644 --- a/sources/application/UI/Base/Layout/NavigationMenu/NavigationMenu.php +++ b/sources/application/UI/Base/Layout/NavigationMenu/NavigationMenu.php @@ -181,6 +181,20 @@ class NavigationMenu extends UIBlock { return $this->sSiloLabel; } + + /** + * @return string The current organization ID of the app. context + */ + public function GetOrgId(): string + { + $oAppContext = new ApplicationContext(); + $sCurrentOrganization = $oAppContext->GetCurrentValue('org_id'); + + if(!empty($sCurrentOrganization)) { + return $sCurrentOrganization; + } + return ''; + } /** * @return array @@ -423,19 +437,4 @@ JS; return $this; } - - /** - * @return string The current organization ID of the app. context - */ - public function GetOrgId(): string - { - $oAppContext = new ApplicationContext(); - $sCurrentOrganization = $oAppContext->GetCurrentValue('org_id'); - - if(!empty($sCurrentOrganization)) { - return $sCurrentOrganization; - } - return ''; - } - } \ No newline at end of file