Skip to content

Commit

Permalink
Merge pull request #819 from compucorp/RSESPRT-70-fix-awards-tab-not-…
Browse files Browse the repository at this point in the history
…loading

RSESPRT-70: Fix awards tab not loading
  • Loading branch information
olayiwola-compucorp authored Sep 9, 2021
2 parents a593572 + a4ba447 commit ff77f99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Civicase/Page/ContactCaseTab.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private function getModuleAndDependenciesTranslations($mainModuleName) {
$angularManager = new Manager(CRM_Core_Resources::singleton());
$moduleAndDependenciesNames = $angularManager->resolveDependencies([$mainModuleName]);

foreach ($angularManager->resolveDependencies(['civicase']) as $moduleName) {
foreach ($moduleAndDependenciesNames as $moduleName) {
$module = $angularManager->getModule($moduleName);
$translationDomainName = 'strings::' . $module['ext'];
$moduleTranslations = $angularManager->getTranslatedStrings($moduleName);
Expand All @@ -74,7 +74,7 @@ private function getModuleAndDependenciesTranslations($mainModuleName) {
);
}

return $translations;
return $translations ?? [];
}

}

0 comments on commit ff77f99

Please sign in to comment.