From: Tim Otten Date: Fri, 7 May 2021 02:24:41 +0000 (-1000) Subject: (NFC) Add comments about keeping two items sync'd X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1daa538497079919cf8538c188f264effbfdae89;p=civicrm-core.git (NFC) Add comments about keeping two items sync'd --- diff --git a/Civi/Angular/AngularLoader.php b/Civi/Angular/AngularLoader.php index c887e9d13f..2df7997ce5 100644 --- a/Civi/Angular/AngularLoader.php +++ b/Civi/Angular/AngularLoader.php @@ -155,6 +155,7 @@ class AngularLoader { $headOffset = 0; $config = \CRM_Core_Config::singleton(); if ($config->debug) { + // FIXME: The `resetLocationProviderHashPrefix.js` has to stay in sync with `\Civi\Angular\Page\Modules::buildAngularModules()`. $res->addScriptFile('civicrm', 'ang/resetLocationProviderHashPrefix.js', 101, $this->getRegion(), FALSE); foreach ($moduleNames as $moduleName) { foreach ($this->angular->getResources($moduleName, 'css', 'cacheUrl') as $url) { diff --git a/Civi/Angular/Page/Modules.php b/Civi/Angular/Page/Modules.php index 83a72da5cc..39a2e1ccfa 100644 --- a/Civi/Angular/Page/Modules.php +++ b/Civi/Angular/Page/Modules.php @@ -86,6 +86,7 @@ class Modules extends \CRM_Core_Page { $moduleNames = $page->parseModuleNames($event->params['modules'] ?? NULL, $angular); $event->mimeType = 'application/javascript'; $files = array_merge( + // FIXME: The `resetLocationProviderHashPrefix.js` has to stay in sync with `\Civi\Angular\AngularLoader::load()`. [\Civi::resources()->getPath('civicrm', 'ang/resetLocationProviderHashPrefix.js')], $angular->getResources($moduleNames, 'js', 'path') );